/* Responsive — mobile = max-width 991.98px */

@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  body > main {
    overflow-x: clip;
    max-width: 100%;
  }

  .site-container {
    padding-inline: 8px;
    max-width: 100%;
  }

  .header-top {
    gap: 12px;
    height: 64px;
  }

  .header-brand-search {
    gap: 12px;
  }

  .header-brand img {
    width: 132px;
    height: 42px;
  }

  .header-search,
  .header-search-wrap,
  .search-suggest-layer {
    display: none !important;
  }

  .offcanvas-search {
    height: 100% !important;
    max-height: 100% !important;
  }

  .offcanvas-search .offcanvas-header {
    padding: 12px 16px 0;
    justify-content: flex-start;
  }

  .offcanvas-search .offcanvas-body {
    padding: 8px 16px 24px;
    overflow: auto;
  }

  .offcanvas-search .search-suggest-field {
    margin-bottom: 8px;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions-group {
    gap: 8px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-banner {
    height: auto;
    min-height: auto;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    max-width: none;
    margin: 0;
    padding: 32px 20px 24px;
    gap: 24px;
  }

  .hero-copy {
    gap: 16px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-title-em {
    line-height: 42px;
  }

  .hero-desc {
    max-width: none;
    font-size: 15px;
    line-height: 24px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: 260px;
  }

  .hero-visual img {
    object-position: center bottom;
  }

  .section-title,
  .section-head .section-title {
    font-size: 22px;
    line-height: 1.4;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .section-head {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .reason {
    margin-inline: 16px;
    padding: 24px 16px;
    border-radius: 24px;
  }

  .articles {
    margin-inline: 0;
    padding-block: 40px;
    padding-inline: 0;
  }

  .articles .section-head .section-title {
    padding-inline-end: 0;
  }

  .articles .swiper-nav-btn--float {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .articles .swiper-nav-btn--start {
    left: 8px;
  }

  .articles .swiper-nav-btn--end {
    right: 8px;
  }

  .articles .swiper-nav-btn--float img {
    width: 20px;
    height: 20px;
  }

  .why {
    margin-block: 16px;
    margin-inline: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .promo-banner {
    margin-block: 24px;
    margin-inline: 0;
    padding: 0;
    border-radius: var(--radius-3xl);
  }

  .need-cats {
    margin-inline: 0;
    padding: 24px 16px;
    border-radius: 0;
    gap: 24px;
  }

  .need-grid {
    padding: 16px 0;
    gap: 12px;
  }

  .need-cats-head .section-title {
    font-size: 22px;
    line-height: 36px;
  }

  .need-cats-head .section-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .product-shelf {
    margin-block: 16px;
    margin-inline: 0;
    padding: 24px 16px;
    border-radius: 24px;
  }

  .product-shelf--plain {
    margin-block: 0;
    padding: 40px 0;
    border-radius: 0;
  }

  .product-shelf--plain .section-head .section-title {
    padding-inline-end: 0;
  }

  .product-shelf--plain .swiper-nav-btn--float {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .product-shelf--plain .swiper-nav-btn--start {
    left: 8px;
  }

  .product-shelf--plain .swiper-nav-btn--end {
    right: 8px;
  }

  .product-shelf--plain .swiper-nav-btn--float img {
    width: 20px;
    height: 20px;
  }

  .product-shelf--pink {
    padding-inline: 0;
    padding-block: 24px;
  }

  .product-shelf--pink > .section-head {
    padding-inline: 16px;
  }

  .product-shelf--pink .swiper-nav-btn--float {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .product-shelf--pink .swiper-nav-btn--start {
    left: 8px;
  }

  .product-shelf--pink .swiper-nav-btn--end {
    right: 8px;
  }

  .product-shelf--pink .swiper-nav-btn--float img {
    width: 20px;
    height: 20px;
  }

  .product-shelf-fade {
    width: 48px;
  }

  .product-shelf-glow {
    width: min(640px, 90%);
    height: 96px;
    top: -48px;
  }

  .product-shelf--plain .products-swiper,
  .product-shelf--pink .products-swiper,
  .articles-swiper {
    overflow: hidden;
  }

  .articles {
    overflow-x: clip;
  }

  .products-swiper .swiper-slide,
  .product-shelf--pink .products-swiper .swiper-slide,
  .articles-swiper .swiper-slide {
    width: 260px;
  }

  .product-media {
    --product-discount-chip-h: 34px;
  }

  .product-discount-badge {
    min-width: 64px;
    padding: 0 10px;
    font-size: 22px;
  }

  .product-discount-timer {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 80px);
    padding: 0px 10px 0px 10px;
    font-size: 14px;
  }

  .product-discount-timer__icon {
    font-size: 12px;
  }

  .btn-cart {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .btn-cart img {
    width: 20px;
    height: 20px;
    max-width: 20px;
  }

  .know-skin {
    padding: 40px 0 48px;
    gap: 16px;
  }

  .know-skin-mark {
    top: 120px;
    width: min(900px, 140%);
    opacity: 0.9;
  }

  .know-skin-title {
    font-size: 24px;
    line-height: 40px;
  }

  .know-skin-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    direction: rtl;
  }

  .know-skin-stage .know-product {
    order: -1;
    width: min(220px, 56vw);
  }

  .know-card {
    max-width: 369px;
  }

  .know-card h3 {
    font-size: 20px;
    padding-left: 56px;
  }

  .know-card p {
    font-size: 15px;
    line-height: 24px;
  }

  .know-card-btn {
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .reason-top {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-inline: 0;
    margin-bottom: 28px;
  }

  .reason-top-copy {
    max-width: none;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .reason-top-copy h2 {
    width: 100%;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
    white-space: nowrap;
    text-align: right;
  }

  .reason-top-copy p {
    max-width: 267px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-placeholder);
    text-align: right;
  }

  .reason-social {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .reason-social-meta {
    width: auto;
    max-width: 215px;
    min-width: 0;
    align-items: flex-start;
    gap: 4px;
  }

  .reason-social-rate {
    gap: 6px;
    direction: ltr;
    justify-content: flex-start;
  }

  .reason-social-score {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
  }

  .reason-social-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-text);
  }

  .reason-social-stars i {
    font-size: 17px;
  }

  .reason-social-stars i:nth-child(n + 2) {
    display: none;
  }

  .reason-avatars img,
  .reason-avatars .avatar-more {
    width: 28px;
    height: 28px;
    border-width: 2.2px;
    margin-left: -7px;
  }

  .reason-avatars .avatar-more {
    font-size: 11px;
    font-weight: 600;
  }

  .reason-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-banner,
  .reason-side .reason-banner {
    border-radius: var(--radius-3xl);
  }

  .reason-side {
    gap: 16px;
  }

  .reason-banner--main img {
    height: auto;
  }

  .why-layout {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }

  .why-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-grid::before {
    width: 80%;
    height: 120px;
    filter: blur(80px);
  }

  .why-copy {
    align-items: flex-start;
    width: 100%;
  }

  .why-copy h2 {
    max-width: 319px;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
  }

  .why-copy p {
    max-width: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-muted-strong);
  }

  .why-looper {
    left: -310px;
    top: -508px;
    width: 910px;
    height: 836px;
  }

  .why-looper img {
    width: 789px;
    height: 693px;
    transform: rotate(11.42deg);
  }

  .why-card {
    align-items: stretch;
    gap: 8px;
    padding: 20px 21px;
    border-radius: 16px;
    text-align: right;
    direction: rtl;
  }

  .why-card-head {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .why-card-icon {
    width: 36px;
    height: 36px;
  }

  .why-card-icon-glow {
    inset: auto;
    left: 50%;
    top: 50%;
    width: 34.5px;
    height: 34.5px;
    filter: blur(11.35px);
    transform: translate(-50%, -50%);
  }

  .why-card-icon img {
    width: 20px;
    height: 20px;
  }

  .why-card h3 {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: right;
  }

  .why-card p {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-text-secondary);
    text-align: right;
  }

  .footer-inner {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-top > .footer-col {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .need-item {
    width: calc(50% - 6px);
    padding: 24px 0;
    gap: 16px;
  }

  .skin-needs {
    padding-block: 32px 24px;
    overflow: hidden;
  }

  .skin-needs-head {
    margin-bottom: 22px;
    gap: 3px;
    padding-inline: 0;
  }

  .skin-needs-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
  }

  .skin-needs-subtitle {
    max-width: 302px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
  }

  .skin-needs-stage {
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    padding-bottom: 0;
  }

  .skin-needs-glow {
    width: min(520px, 100%);
    height: 208px;
    top: 50%;
    left: 50%;
    opacity: 0.5;
    filter: blur(82px);
    transform: translate(-50%, -50%) rotate(-36.11deg);
  }

  .skin-grid {
    width: 100%;
    max-width: 342px;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(103px, auto);
    gap: 8px;
    direction: ltr;
  }

  .skin-ghost {
    display: none;
  }

  /* Figma 298:7339 LTR fill — CTA bottom-left, acne bottom-right */
  .skin-card--pos-4 { order: 1; }
  .skin-card--pos-3 { order: 2; }
  .skin-card--pos-2 { order: 3; }
  .skin-card--pos-1 { order: 4; }
  .skin-card--pos-7 { order: 5; }
  .skin-card--pos-6 { order: 6; }
  .skin-card--pos-8,
  .skin-card.is-cta { order: 7; }
  .skin-card--pos-5 { order: 8; }

  .skin-card {
    height: auto;
    min-height: 103px;
    padding: 8px;
    gap: 10px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card:hover {
    transform: none;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card-icon {
    width: 22px;
    height: 22px;
    padding: 2px 1px;
    border-radius: 6px;
  }

  .skin-card-icon-mark {
    width: 15px;
    height: 14px;
  }

  .skin-card-copy {
    gap: 4px;
  }

  .skin-card h3 {
    font-size: 12px;
    line-height: 20px;
    white-space: normal;
  }

  .skin-card p {
    font-size: 10px;
    line-height: 14px;
  }

  .skin-card.is-cta {
    justify-content: space-between;
    gap: 0;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card.is-cta h3 {
    white-space: normal;
  }

  .skin-card-cta {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 17px;
  }
}

@media (min-width: 992px) {
  .offcanvas-mobile-nav,
  .offcanvas-search,
  .offcanvas-shop {
    display: none !important;
  }

  .mobile-routine-toggle,
  .mobile-bottom-nav,
  .products-pagination {
    display: none !important;
  }
}

/* Mobile landing-page composition from Landing Page-V2.pdf. */
@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    border-bottom: 1px solid #f0f0f0;
  }

  .header-top {
    height: 64px;
    gap: 8px;
    padding-block: 12px;
  }

  .header-brand-search {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 0;
  }

  .header-brand img {
    width: 96px;
    height: auto;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: #f4f4f5;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions .header-login-btn,
  .header-actions .header-divider,
  .header-actions .header-user-menu,
  .header-actions .header-user-btn,
  .header-actions > .header-icon-btn:last-child,
  .header-actions .header-cart-menu,
  .header-actions .header-badge {
    display: none;
  }

  .header-club-mobile-link {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 72px;
    height: 40px;
    padding: 4px 8px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: var(--color-heading);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-club-mobile-link:hover,
  .header-club-mobile-link:focus-visible {
    border-color: #d4d4d8;
    background: #f4f4f5;
    color: #09090b;
    outline: none;
  }

  .mobile-routine-toggle {
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 118px;
    height: 40px;
    padding: 4px 8px 4px 10px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    direction: ltr;
    isolation: isolate;
  }

  .mobile-routine-toggle::before {
    content: "";
    position: absolute;
    left: -15px;
    top: -10px;
    z-index: 0;
    width: 72px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(
      ellipse,
      rgba(194, 225, 183, 0.92) 0%,
      rgba(194, 225, 183, 0.54) 42%,
      rgba(194, 225, 183, 0) 76%
    );
    filter: blur(8px);
    pointer-events: none;
    transform: translateX(70px);
    animation: routine-toggle-glow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
  }

  .mobile-routine-toggle > * {
    position: relative;
    z-index: 1;
  }

  .mobile-routine-switch {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 22px;
    flex: 0 0 28px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .mobile-routine-switch span {
    position: absolute;
    top: 0;
    left: 7px;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #030000;
    z-index: 2;
  }

  .mobile-routine-switch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #030000;
    z-index: 1;
  }

  @keyframes routine-toggle-glow {
    0%,
    100% {
      transform: translateX(70px);
    }

    50% {
      transform: translateX(0);
    }
  }

  .hero {
    padding-block: 12px 24px;
  }

  .hero-banner {
    display: block;
    height: 555px;
    min-height: 555px;
    border-radius: 24px;
  }

  .hero-banner::before {
    right: auto;
    width: 88px;
    background-position: left top;
    background-size: 140px 247px;
    opacity: 0.42;
  }

  .hero-content {
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 255px 20px 24px;
    gap: 20px;
  }

  .hero-copy {
    gap: 14px;
  }

  .hero-head {
    gap: 8px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 34px;
  }

  .hero-title-em {
    line-height: 34px;
  }

  .hero-desc {
    max-width: none;
    font-size: 13px;
    line-height: 22px;
  }

  .hero-content > .btn-primary-dark {
    align-self: flex-start;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 20px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    z-index: 1;
  }

  .hero-visual-desktop {
    display: none !important;
  }

  .hero-visual-model,
  .hero-visual-products {
    display: block;
    position: absolute;
    width: auto !important;
    height: auto !important;
    max-width: none;
    object-fit: contain;
  }

  .hero-visual-model {
    top: 0;
    right: auto;
    left: 50%;
    width: 100% !important;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }

  .hero-visual-products {
    right: auto;
    bottom: -1px;
    left: 0;
    width: 72% !important;
  }

  .skin-needs {
    padding-block: 24px;
  }

  .skin-needs-head {
    gap: 3px;
    margin-bottom: 22px;
    padding-inline: 0;
  }

  .skin-needs-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
  }

  .skin-needs-subtitle {
    max-width: 302px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
  }

  .skin-needs-stage {
    padding-bottom: 0;
  }

  .skin-needs-glow {
    width: min(520px, 100%);
    height: 208px;
    top: 50%;
    left: 50%;
    opacity: 0.5;
    filter: blur(82px);
    transform: translate(-50%, -50%) rotate(-36.11deg);
  }

  .skin-grid {
    width: 100%;
    max-width: 342px;
    margin-inline: auto;
    direction: ltr;
    gap: 8px;
    grid-auto-rows: minmax(103px, auto);
  }

  /* Figma 298:7339 — CTA then acne on last row */
  .skin-card--pos-4 { order: 1; }
  .skin-card--pos-3 { order: 2; }
  .skin-card--pos-2 { order: 3; }
  .skin-card--pos-1 { order: 4; }
  .skin-card--pos-7 { order: 5; }
  .skin-card--pos-6 { order: 6; }
  .skin-card--pos-8,
  .skin-card.is-cta { order: 7; }
  .skin-card--pos-5 { order: 8; }

  .skin-card {
    min-height: 103px;
    padding: 8px;
    gap: 10px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card:hover {
    transform: none;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card-icon {
    width: 22px;
    height: 22px;
    padding: 2px 1px;
    border-radius: 6px;
  }

  .skin-card-icon-mark {
    width: 15px;
    height: 14px;
  }

  .skin-card-copy {
    gap: 4px;
  }

  .skin-card h3 {
    font-size: 12px;
    line-height: 20px;
  }

  .skin-card p {
    font-size: 10px;
    line-height: 14px;
  }

  .skin-card.is-cta {
    justify-content: space-between;
    gap: 0;
    box-shadow: 0 12px 24px rgba(50, 81, 39, 0.12);
  }

  .skin-card-cta {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 17px;
  }

  .site-container > .product-shelf--pink {
    margin-inline: -16px;
  }

  /* Bestsellers — Figma 523:8919 */
  .product-shelf--pink {
    padding-block: 16px;
    border-radius: 0;
  }

  .product-shelf--pink .product-shelf-fade {
    display: none;
  }

  .product-shelf--pink .product-shelf-glow {
    top: -24px;
    width: min(640px, 88%);
    height: 72px;
    opacity: 0.45;
  }

  .product-shelf--pink > .section-head,
  .product-shelf--plain > .site-container .section-head,
  .articles > .site-container .section-head {
    flex-direction: row;
    align-items: center;
    margin-bottom: 16px;
  }

  .product-shelf--pink > .section-head {
    padding-inline: 16px;
  }

  .product-shelf--pink .section-title,
  .product-shelf--plain .section-title,
  .articles .section-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
  }

  .product-shelf--pink .btn-view-all,
  .product-shelf--plain .btn-view-all,
  .articles .btn-view-all {
    gap: 4px;
    padding: 8px 12px;
    min-height: 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .product-shelf--pink .btn-view-all {
    padding-inline: 12px 16px;
  }

  .product-shelf--pink .btn-view-all-label--full {
    display: none;
  }

  .product-shelf--pink .btn-view-all-label--short {
    display: inline;
  }

  .product-shelf--pink .btn-view-all img,
  .product-shelf--plain .btn-view-all img,
  .articles .btn-view-all img {
    width: 20px;
    height: 20px;
  }

  .product-shelf--pink .swiper-nav-btn--float,
  .product-shelf--plain .swiper-nav-btn--float,
  .articles .swiper-nav-btn--float {
    display: inline-flex;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 8px;
    z-index: 5;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 43, 0.1);
  }

  .product-shelf--pink .swiper-nav-btn--start,
  .product-shelf--plain .swiper-nav-btn--start,
  .articles .swiper-nav-btn--start {
    left: 8px;
  }

  .product-shelf--pink .swiper-nav-btn--end,
  .product-shelf--plain .swiper-nav-btn--end,
  .articles .swiper-nav-btn--end {
    right: 8px;
  }

  .product-shelf--pink .swiper-nav-btn--float img,
  .product-shelf--plain .swiper-nav-btn--float img,
  .articles .swiper-nav-btn--float img {
    width: 20px;
    height: 20px;
  }

  .product-shelf--pink .swiper-nav-btn--start img,
  .product-shelf--plain .swiper-nav-btn--start img,
  .articles .swiper-nav-btn--start img {
    transform: rotate(90deg);
  }

  .product-shelf--pink .swiper-nav-btn--end img,
  .product-shelf--plain .swiper-nav-btn--end img,
  .articles .swiper-nav-btn--end img {
    transform: rotate(-90deg);
  }

  .product-shelf--pink .swiper-nav-btn--float:disabled,
  .product-shelf--pink .swiper-nav-btn--float.swiper-button-disabled,
  .product-shelf--plain .swiper-nav-btn--float:disabled,
  .product-shelf--plain .swiper-nav-btn--float.swiper-button-disabled,
  .articles .swiper-nav-btn--float:disabled,
  .articles .swiper-nav-btn--float.swiper-button-disabled,
  .product-shelf--pink .swiper-nav-btn--float.is-swiper-nav-hidden,
  .product-shelf--plain .swiper-nav-btn--float.is-swiper-nav-hidden,
  .articles .swiper-nav-btn--float.is-swiper-nav-hidden {
    display: none !important;
  }

  .product-shelf--pink .product-shelf-carousel::after,
  .product-shelf--plain .product-shelf-carousel::after {
    content: none;
    display: none;
  }

  .products-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    height: 8px;
    margin-top: 16px;
  }

  .products-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d3d3d7;
    opacity: 1;
    border-radius: 50%;
    transition: background var(--transition-fast);
  }

  .products-pagination .swiper-pagination-bullet-active {
    background: #09090b;
  }

  .product-shelf--pink .products-pagination .swiper-pagination-bullet {
    background: #fff;
  }

  .product-shelf--pink .products-pagination .swiper-pagination-bullet-active {
    background: #09090b;
  }

  .product-shelf--pink .product-card {
    gap: 18px;
    padding: 5px;
    border-radius: 24px;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .product-shelf--pink .product-media {
    border-radius: 20px 20px 12px 12px;
  }

  .product-shelf--pink .product-media-discount-chips {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 80px);
  }

  .product-shelf--pink .product-media-discount-chips .product-discount-badge {
    min-width: 61px;
    min-height: 33px;
    padding: 5px 10px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
  }

  .product-shelf--pink .product-special-tier-badge__text {
    font-size: 13px;
  }

  .product-shelf--pink .product-body {
    gap: 16px;
    padding: 0 12px 12px;
  }

  .product-shelf--pink .product-info {
    gap: 12px;
  }

  .product-shelf--pink .product-rating {
    font-size: 12px;
    line-height: 14px;
  }

  .product-shelf--pink .product-stars i {
    font-size: 12px;
  }

  .product-shelf--pink .product-title {
    min-height: 37px;
    font-size: 14px;
    font-weight: 600;
    line-height: 18.5px;
  }

  .product-shelf--pink .product-meta {
    padding-top: 15px;
  }

  .product-shelf--pink .badge-off {
    height: 20px;
    padding: 2px 6px 0;
    font-size: 12px;
    line-height: 16px;
  }

  .product-shelf--pink .price-strike {
    font-size: 12px;
    line-height: 16px;
  }

  .product-shelf--pink .product-price-now strong {
    font-size: 18px;
    line-height: 22px;
  }

  .product-shelf--pink .product-price-now span {
    font-size: 12px;
    line-height: 13px;
  }

  .product-shelf--pink .btn-cart {
    width: 43px;
    height: 43px;
    padding: 12px;
    border-color: transparent;
    background: #09090b;
  }

  .product-shelf--pink .btn-cart img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
  }

  .product-card {
    gap: 18px;
  }

  .product-body {
    gap: 14px;
    padding: 0 12px 12px;
  }

  .product-info {
    gap: 10px;
  }

  .product-title {
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
  }

  .product-meta {
    padding-top: 14px;
  }

  .product-price-now strong {
    font-size: 18px;
    line-height: 26px;
  }

  .need-cats {
    gap: 20px;
    padding: 36px 16px 32px;
  }

  .need-cats-head .section-title {
    font-size: 20px;
    line-height: 30px;
  }

  .need-cats-head .section-subtitle {
    font-size: 12px;
    line-height: 20px;
  }

  .need-grid {
    gap: 8px;
    padding: 12px 0;
  }

  .need-item {
    width: calc((100% - 16px) / 3);
    min-height: 132px;
    padding: 22px 6px;
    gap: 12px;
    border-radius: 24px;
  }

  .need-item img {
    width: 32px;
    height: 32px;
  }

  .need-item span:not(.need-item-glow) {
    padding-inline: 2px;
    font-size: 12px;
    line-height: 18px;
  }

  .need-cats-cta .btn-primary-dark {
    padding: 10px 16px;
    font-size: 12px;
    line-height: 20px;
  }

  .promo-banner {
    margin-block: 20px;
    border-radius: 20px;
  }

  .promo-banner-link picture,
  .promo-banner-link picture img {
    display: block;
    width: 100%;
  }

  .know-skin {
    gap: 12px;
    padding: 32px 0 48px;
  }

  .know-skin-title {
    font-size: 22px;
    line-height: 32px;
  }

  .know-skin-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
  }

  .know-skin-stage .know-product {
    order: -1;
    width: min(220px, 56vw);
  }

  .know-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-top: 0;
    padding: 12px;
    gap: 6px;
    border-radius: 12px;
  }

  .know-card:last-child {
    order: 1;
  }

  .know-card:first-of-type {
    order: 2;
  }

  .know-card h3 {
    padding-left: 30px;
    font-size: 13px;
    line-height: 20px;
  }

  .know-card p {
    font-size: 10px;
    line-height: 16px;
  }

  .know-card-btn {
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    padding: 5px;
  }

  .know-card-btn img {
    width: 14px;
    height: 14px;
  }

  .reason {
    margin-inline: 0;
    padding: 36px 16px 24px;
  }

  .reason-top {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 24px;
    padding-inline: 0;
  }

  .reason-top-copy {
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .reason-top-copy h2 {
    width: 100%;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
    white-space: nowrap;
    text-align: right;
  }

  .reason-top-copy p {
    max-width: 267px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-placeholder);
    text-align: right;
  }

  .reason-social {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .reason-social-meta {
    width: auto;
    max-width: 215px;
    align-items: flex-start;
    gap: 4px;
  }

  .reason-social-rate {
    gap: 6px;
    direction: ltr;
    justify-content: flex-start;
  }

  .reason-social-score {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
  }

  .reason-social-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-text);
  }

  .reason-social-stars i {
    font-size: 17px;
  }

  .reason-social-stars i:nth-child(n + 2) {
    display: none;
  }

  .reason-avatars img,
  .reason-avatars .avatar-more {
    width: 28px;
    height: 28px;
    border-width: 2.2px;
    margin-left: -7px;
  }

  .reason-avatars .avatar-more {
    font-size: 11px;
    font-weight: 600;
  }

  .reason-layout {
    gap: 12px;
  }

  .reason-banner picture,
  .reason-banner picture img {
    display: block;
    width: 100%;
  }

  .reason-banner--main img {
    height: auto;
  }

  .reason-side {
    gap: 12px;
  }

  .why {
    margin-block: 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .why-layout {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }

  .why-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-copy {
    align-items: flex-start;
    width: 100%;
  }

  .why-copy h2 {
    max-width: 319px;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
  }

  .why-copy p {
    max-width: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-muted-strong);
  }

  .why-looper {
    left: -310px;
    top: -508px;
    width: 910px;
    height: 836px;
  }

  .why-looper img {
    width: 789px;
    height: 693px;
    transform: rotate(11.42deg);
  }

  .why-card {
    align-items: stretch;
    gap: 8px;
    padding: 20px 21px;
    border-radius: 16px;
    text-align: right;
    direction: rtl;
  }

  .why-card-head {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .why-card-icon {
    width: 36px;
    height: 36px;
  }

  .why-card-icon-glow {
    inset: auto;
    left: 50%;
    top: 50%;
    width: 34.5px;
    height: 34.5px;
    filter: blur(11.35px);
    transform: translate(-50%, -50%);
  }

  .why-card-icon img {
    width: 20px;
    height: 20px;
  }

  .why-card h3 {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: right;
  }

  .why-card p {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: var(--color-text-secondary);
    text-align: right;
  }

  .articles {
    padding-block: 32px 16px;
  }

  .articles > .site-container .section-head {
    padding-inline: 0;
  }

  .site-footer {
    display: block;
    margin-top: 24px;
    margin-bottom: calc(0px + env(safe-area-inset-bottom, 0px));
    padding-block: 16px 8px;
  }

  .site-footer .footer-inner {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .site-footer .footer-top > .footer-col {
    min-width: 0;
  }

  .site-footer .footer-brand img {
    width: min(140px, 52vw);
  }

  .site-footer .footer-brand .footer-trust img {
    width: auto;
    max-width: 100px;
    height: auto;
    filter: none;
  }

  .site-footer .footer-brand p {
    font-size: 13px;
    line-height: 22px;
  }

  .site-footer .footer-col h6 {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .site-footer .footer-col a,
  .site-footer .footer-col .footer-link-btn {
    font-size: 13px;
  }

  .site-footer .footer-social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-footer .footer-newsletter label {
    font-size: 13px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    font-size: 12px;
    line-height: 20px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(332px, calc(100% - 32px));
    height: 64px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1000px;
    background: rgba(250, 250, 250, 0.72);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
  }

  .mobile-bottom-nav a {
    position: relative;
    z-index: 1;
    flex: 1 0 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    color: #2a4423;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .mobile-bottom-nav a img,
  .mobile-bottom-nav a i {
    width: 24px;
    height: 24px;
    display: block;
    margin-block: 5px;
    object-fit: contain;
  }

  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 0;
    inset-inline-end: -6px;
    z-index: 1;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: var(--color-error, #e11d48);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__badge[hidden] {
    display: none !important;
  }

  .mobile-bottom-nav a .icon-active {
    display: none;
  }

  .mobile-bottom-nav a.active {
    color: #5e9e49;
    font-weight: 700;
    background: rgba(50, 82, 41, 0.08);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-bottom-nav a.active .icon-idle {
    display: none;
  }

  .mobile-bottom-nav a.active .icon-active {
    display: block;
  }

  /* Routine builder offcanvas — mobile only */
  .offcanvas-routine .offcanvas-routine-inner {
    padding: 12px 0 0;
  }

  .offcanvas-routine-topbar {
    padding-inline: 16px;
    margin-bottom: 12px;
  }

  .offcanvas-routine-brand img {
    width: 120px;
  }

  .offcanvas-routine-exit {
    width: 36px;
    height: 36px;
  }

  .offcanvas-routine-topbar-actions {
    gap: 8px;
  }

  .offcanvas-routine-cart {
    width: 36px;
    height: 36px;
  }

  .offcanvas-routine-cart img {
    width: 20px;
    height: 20px;
  }

  .offcanvas-routine-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .offcanvas-routine-form {
    flex: 1 1 auto;
    max-width: none;
    padding: 0;
  }

  .offcanvas-routine-title {
    font-size: 22px;
    line-height: 32px;
  }

  .offcanvas-routine-option-face {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .offcanvas-routine-back,
  .offcanvas-routine-next {
    padding-inline: 16px;
  }

  .offcanvas-routine-visual {
    display: none;
  }

  .offcanvas.routine-product-options {
    --bs-offcanvas-height: max-content;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .routine-product-options-inner {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .routine-product-options-header {
    margin-bottom: 18px;
  }

  .routine-product-options-header h2 {
    max-width: 290px;
    font-size: 18px;
    line-height: 28px;
  }

  .routine-product-options-product {
    gap: 14px;
  }

  .routine-product-options-media {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  .routine-product-options-price strong {
    font-size: 20px;
  }

  .routine-product-options-fields {
    gap: 22px;
    margin-top: 24px;
  }

  .routine-product-options-footer {
    padding-top: 24px;
  }

  .routine-product-cart-state {
    align-items: stretch;
    flex-direction: column;
  }

  .routine-product-quantity {
    width: 100%;
    min-width: 0;
  }

  .routine-product-cart-copy {
    align-items: center;
  }

  /* Routine result — mobile (Figma 536-34540) */
  .offcanvas-routine-result {
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .routine-result-intro {
    margin-bottom: 16px;
  }

  .routine-result-title {
    font-size: 22px;
    line-height: 32px;
  }

  .routine-result-lead {
    font-size: 13px;
    line-height: 22px;
  }

  .routine-result-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .routine-result-summary {
    display: none;
  }

  .routine-result-restart-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--color-heading);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
  }

  .routine-result-tabs {
    gap: 2px;
    margin-bottom: 10px;
    padding: 6px 4px 16px;
  }

  .routine-result-tabs::after {
    inset: 6px 0 auto;
    height: calc(100% - 22px);
  }

  .routine-result-tab {
    min-height: 42px;
    padding: 8px 6px;
    font-size: 12px;
    gap: 4px;
  }

  .routine-result-tab-icon {
    width: 22px;
    height: 22px;
  }

  .routine-result-tab-icon img {
    width: 18px;
    height: 18px;
  }

  .routine-result-stages {
    gap: 22px;
  }

  .routine-result-stage-title-row {
    margin-bottom: 8px;
    gap: 6px;
  }

  .routine-result-stage-label {
    font-size: 11px;
    padding: 2px 8px;
  }

  .routine-result-stage-title {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 0;
  }

  /* Early-result modal — mobile Figma 533-26069 */
  .modal-routine-early {
    --bs-modal-margin: 0;
  }

  .modal-routine-early .modal-routine-early-dialog {
    max-width: none;
    width: 100%;
    margin: 0;
    align-items: flex-end;
    min-height: 100%;
  }

  .modal-routine-early-content {
    border-radius: 0;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
  }

  .modal-routine-early-media {
    display: none;
  }

  .modal-routine-early-close--mobile {
    display: inline-flex;
    position: absolute;
    top: 16px;
    left: 16px;
    right: auto;
  }

  .modal-routine-early-body {
    padding: 56px 20px 0;
  }

  .modal-routine-early-title {
    font-size: 20px;
    line-height: 30px;
  }

  .modal-routine-early-text {
    max-width: none;
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .modal-routine-early-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modal-routine-early-continue,
  .modal-routine-early-result {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* Shopping cart — mobile ≤991.98px (Figma ShoppingCarts) */
@media (max-width: 991.98px) {
  html:has(body.cart-page),
  body.cart-page {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  body.cart-page {
    padding-bottom: 0;
  }

  .cart-page .site-footer {
    margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page .mobile-bottom-nav {
    display: none !important;
  }

  .cart-page {
    background: #fff;
  }

  .cart-page .site-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 8px !important;
  }

  .cart-page .cart-layout,
  .cart-page .cart-lines-wrap,
  .cart-page .cart-shelves {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .cart-page .offcanvas-bottom {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart-page .cart-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .cart-page .cart-layout > .cart-summary,
  .cart-page .cart-layout > [data-cart-summary-desktop] {
    display: none;
  }

  .cart-page .cart-lines-wrap {
    order: 1;
    gap: 12px;
  }

  /* Payment summary sidebar mount follows main content on all cart steps */
  .cart-page .cart-summary-mount {
    order: 2;
    max-width: none;
  }

  .cart-page .cart-summary-mount > .cart-summary,
  .cart-page .cart-summary-mount .cart-summary {
    max-width: none;
  }

  /* Inline mobile row cards duplicate the mount summary when it sits at the bottom */
  .cart-page .cart-shipping-mobile-summary.cart-shipping-mobile-only,
  .cart-page .cart-checkout-mobile-summary.cart-shipping-mobile-only {
    display: none !important;
  }

  .cart-page .cart-hero {
    padding-top: 16px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body.cart-page:has(.cart-mobile-checkout-stack .cart-summary-purchase-points) .cart-hero,
  body.cart-page:has(.cart-mobile-checkout-stack .cart-summary-purchase-points) .cart-shelves {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page .cart-shelves {
    padding-top: 24px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page .cart-head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-inline: 4px;
    margin-bottom: 4px;
  }

  .cart-page .cart-head > h1 {
    flex: 0 0 auto;
    min-width: 0;
  }

  .cart-page .cart-head > div:has(.cart-head-gifts-link--mobile) {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .cart-mobile-checkout-stack:not(.cart-mobile-checkout-stack--shipping):not(.cart-mobile-checkout-stack--checkout) {
    display: flex;
  }

  .cart-mobile-checkout-stack--shipping,
  .cart-mobile-checkout-stack--checkout {
    display: none;
  }

  .cart-mobile-checkout-stack {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid #e4e4e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .cart-mobile-checkout-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
  }

  .cart-mobile-checkout-old {
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: line-through;
  }

  .cart-mobile-checkout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52525b;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
  }

  .cart-mobile-checkout-toggle img {
    transition: transform 0.2s ease;
  }

  .cart-mobile-checkout-toggle[aria-expanded='true'] img {
    transform: rotate(180deg);
  }

  .cart-mobile-checkout-total {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    color: #09090b;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
  }

  .cart-mobile-checkout-total small {
    font-size: 11px;
    font-weight: 400;
  }

  .cart-mobile-checkout-submit {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 1000px;
    background: #020617;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
  }

  .cart-page .cart-line {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-color: #ebebef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .cart-page .cart-line-notice {
    padding: 8px 12px;
    font-size: 11px;
    line-height: 17px;
  }

  .cart-page .cart-lines-alert {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .cart-page .cart-line-main {
    flex-direction: row;
    align-items: flex-start;
    min-height: 0;
    padding: 12px;
  }

  .cart-page .cart-line-pricing-offset {
    display: none;
  }

  .cart-page .cart-line-unavailable-label {
    padding: 2px 10px;
    font-size: 11px;
    line-height: 20px;
  }

  .cart-page .cart-line-side--unavailable {
    align-self: stretch;
  }

  .cart-page .cart-line-remove {
    order: 1;
    gap: 4px;
    width: 80px;
    min-width: 80px;
    min-height: 28px;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 14px;
  }

  .cart-page .cart-line-remove span {
    display: none;
  }

  .cart-page .cart-line-remove img {
    width: 12px;
    height: 12px;
  }

  .cart-page .cart-line-pricing--unavailable {
    order: 2;
    flex-shrink: 0;
    align-items: flex-start;
    width: auto;
  }

  .cart-page .cart-line-media {
    width: 80px;
    height: 80px;
    border-radius: 0;
  }

  .cart-page .cart-line-body {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 0 8px 0 0;
  }

  .cart-page .cart-line-info {
    gap: 6px;
  }

  .cart-page .cart-line-rating,
  .cart-page .cart-line-subtitle {
    display: none;
  }

  .cart-page .cart-line-attrs {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
  }

  .cart-page .cart-line-attr {
    padding: 2px 8px;
    font-size: 10px;
    line-height: 14px;
  }

  .cart-page .cart-line-side {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding-top: 0;
  }

  .cart-page .cart-line-pricing {
    order: 2;
    flex-shrink: 1;
    align-items: flex-start;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .cart-page .cart-line-pricing .price-old-row {
    justify-content: flex-start;
    font-size: 11px;
  }

  .cart-page .cart-line-pricing .price-now {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
  }

  .cart-page .cart-line-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .cart-page .cart-line-purchase-point {
    margin-top: -6px;
    padding: 1px 6px;
    font-size: 10px;
    line-height: 14px;
  }

  .cart-page .cart-line-purchase-points {
    gap: 6px;
    margin-top: -4px;
    padding: 5px 8px;
  }

  .cart-page .cart-line-purchase-points__coin {
    width: 18px;
    height: 18px;
  }

  .cart-page .cart-line-purchase-points__text {
    font-size: 10px;
    line-height: 14px;
  }

  .cart-page .cart-line-purchase-points__amount {
    font-size: 11px;
    line-height: 14px;
  }

  .cart-page .cart-line-qty {
    order: 1;
    gap: 2px;
    width: 80px;
    min-width: 80px;
    padding: 2px 3px;
  }

  .cart-page .cart-line-qty button {
    width: 24px;
    height: 24px;
  }

  .cart-page .cart-line-qty button i {
    font-size: 14px;
  }

  .cart-page .cart-line-qty button img {
    width: 12px;
    height: 12px;
  }

  .cart-page .cart-line-qty > span {
    min-width: 14px;
    font-size: 12px;
  }

  .cart-page .cart-head h1 {
    font-size: 18px;
    line-height: 28px;
  }

  .cart-page .cart-head-gifts-link {
    box-sizing: border-box;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    width: auto;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .cart-page .cart-head-gifts-link--desktop {
    display: none;
  }

  .cart-page .cart-head-gifts-link--mobile {
    display: inline-flex;
  }

  .cart-page .cart-gifts--desktop {
    display: none;
  }

  .cart-page .cart-gifts-collapse.collapsing,
  .cart-page .cart-gifts-collapse.show {
    display: block;
  }

  .cart-gifts {
    scroll-margin-top: 112px;
  }

  .cart-gifts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cart-page .cart-gift-product-card__body {
    padding: 10px 8px 0;
  }

  .cart-page .cart-gift-product-card__meta {
    padding: 10px 8px 8px;
  }

  .cart-page .cart-gift-product-card__title {
    min-height: 40px;
    font-size: 12px;
    line-height: 20px;
  }

  .cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 4px 12px;
    gap: 8px;
  }

  .cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add span {
    font-size: 12px;
  }

  .cart-shipment-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cart-page .cart-shelves .product-shelf--plain {
    padding: 32px 0;
  }

  .cart-address-modal-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-address-modal-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cart-address-modal-row--3 .cart-address-field:last-child {
    grid-column: 1 / -1;
  }

  .cart-address-modal-footer,
  .cart-address-offcanvas-footer {
    flex-wrap: wrap;
  }

  .cart-address-offcanvas-body.offcanvas-body {
    padding: 0;
  }

  .cart-address-offcanvas .cart-address-modal-panel {
    padding: 16px 16px 32px;
  }

  .cart-trust-bar .site-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cart-trust-item {
    justify-content: flex-start;
  }

  .cart-payment-result-actions {
    flex-direction: column;
  }

  .cart-payment-result-card {
    gap: 40px;
    padding: 32px 20px;
  }

  .cart-payment-result-looper {
    top: -800px;
    left: -300px;
    width: 1800px;
    height: 1800px;
  }

  /* Shipping step — mobile (Digikala-style) */
  .cart-shipping-mobile-only {
    display: block;
  }

  section.cart-shipping-mobile-only.cart-shipping-express,
  section.cart-shipping-mobile-only.cart-shipping-card--pickup {
    display: flex;
  }

  .cart-address-mobile-bar.cart-shipping-mobile-only {
    display: flex;
  }

  .cart-shipping-desktop-only {
    display: none !important;
  }

  .cart-page--step-shipping .cart-hero {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page--step-shipping .cart-lines-wrap--shipping {
    gap: 12px;
  }

  .cart-page--step-shipping .cart-shipping-card {
    gap: 12px;
    padding: 12px;
    border-color: #ebebef;
    border-radius: 12px;
  }

  .cart-page--step-shipping .cart-shipping-card--address .cart-address-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-color: #e4e4e7;
    background: #fff;
  }

  .cart-page--step-shipping .cart-address-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f4f4f5;
  }

  .cart-page--step-shipping .cart-address-mobile-label {
    margin: 0;
    color: #27272a;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
  }

  .cart-page--step-shipping .cart-address-text p {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
  }

  .cart-page--step-shipping .cart-address-mobile-bar .cart-address-change {
    padding: 0;
    font-size: 12px;
  }

  .cart-page--step-shipping .cart-shipping-card-title {
    font-size: 14px;
    line-height: 20px;
  }

  .cart-page--step-shipping .cart-shipment-head {
    gap: 8px;
  }

  .cart-page--step-shipping .cart-shipment-head-icon {
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(1200%) hue-rotate(330deg)
      brightness(95%) contrast(95%);
  }

  .cart-page--step-shipping .cart-shipment-badge {
    margin-inline-start: auto;
    height: auto;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 18px;
  }

  .cart-page--step-shipping .cart-shipment-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cart-page--step-shipping .cart-shipment-product {
    gap: 8px;
    padding: 8px 6px 10px;
    border-radius: 14px;
  }

  .cart-page--step-shipping .cart-shipment-product-title {
    display: none;
  }

  .cart-page--step-shipping .cart-shipment-product-variant {
    display: block;
  }

  .cart-page--step-shipping .cart-shipment-qty {
    gap: 4px;
    padding: 6px 10px;
  }

  .cart-page--step-shipping .cart-shipment-qty button {
    width: 22px;
    height: 22px;
  }

  .cart-page--step-shipping .cart-shipment-delivery-meta {
    display: flex;
  }


  .cart-page--step-shipping .cart-shipping-payment-rows .cart-summary-sheet-row-label {
    font-size: 13px;
  }

  .cart-page--step-shipping .cart-shipping-payment-rows .cart-summary-sheet-row-value {
    font-size: 13px;
  }

  .cart-page--step-shipping .cart-mobile-checkout-stack--shipping {
    display: flex;
  }

  /* Checkout step — mobile */
  .cart-page--step-checkout .cart-hero {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page--step-checkout .cart-layout > .cart-summary {
    display: none;
  }

  .cart-page--step-checkout .cart-checkout-block {
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
  }

  .cart-page--step-checkout .cart-checkout-block-title {
    font-size: 16px;
    line-height: 24px;
  }

  .cart-page--step-checkout .cart-checkout-order-thumb {
    width: 72px;
    height: 72px;
    padding: 8px;
  }

  .cart-page--step-checkout .cart-checkout-order-thumbs {
    gap: 10px;
  }


  .cart-page--step-checkout .cart-trust-bar {
    display: none;
  }

  .cart-page--step-checkout .cart-mobile-checkout-stack--checkout {
    display: flex;
  }

  /* Payment step: bar scrolls with page (not fixed to viewport) */
  .cart-page--step-checkout .cart-mobile-checkout-stack--checkout {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    margin-top: 24px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .cart-page--step-checkout .cart-hero {
    padding-bottom: 16px !important;
  }

  body.cart-page--step-checkout:has(.cart-mobile-checkout-stack--checkout .cart-summary-purchase-points) .cart-hero {
    padding-bottom: 16px !important;
  }

  /* Points live in sticky bar on mobile; avoid duplicate under desktop summary card */
  .cart-page .cart-summary-mount .cart-summary-purchase-points {
    display: none;
  }
}

/* Product swipers — one card per slide (width from Swiper when slidesPerView: 1) */
@media (max-width: 575.98px) {
  [data-home-swiper] .product-shelf-stage {
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .products-swiper,
  .product-shelf--plain .products-swiper,
  .product-shelf--pink .products-swiper,
  .routine-result-swiper,
  .blog-detail-related-swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart-page .cart-gifts-swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-shelf--pink .product-shelf-stage,
  .product-shelf--plain .product-shelf-stage,
  .product-shelf-carousel .product-shelf-stage {
    overflow: hidden;
  }

  .products-swiper .swiper-slide,
  .product-shelf--pink .products-swiper .swiper-slide,
  .product-shelf--plain .products-swiper .swiper-slide,
  .routine-result-swiper .swiper-slide,
  .blog-detail-related-swiper .swiper-slide {
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  .cart-page .cart-gifts-swiper .swiper-slide {
    width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    min-width: 0;
    box-sizing: border-box;
  }

  .products-swiper .swiper-slide .product-card,
  .routine-result-swiper .swiper-slide .product-card,
  .routine-result-swiper .swiper-slide .routine-result-card {
    width: 100%;
    max-width: 100%;
  }

  .cart-page .cart-gifts-swiper .swiper-slide .cart-gift-product-card {
    width: 100%;
    max-width: 100%;
  }
}