:root {
    --sf-card-pink: #f70058;
    --sf-card-pink-soft: #fff1f6;
    --sf-card-ink: #0e1930;
    --sf-card-muted: #6f7788;
    --sf-card-line: #e9e4e7;
    --sf-card-green: #14943f;
    --sf-card-orange: #ff9700;
}

/* A shared label for catalogue, home, related and upsell product cards. */
.sf-product__flag[data-country-name] { overflow: visible; }
.sf-product__flag[data-country-name]::after {
    content: attr(data-country-name);
    position: absolute;
    right: -5px;
    bottom: calc(100% + 10px);
    z-index: 10;
    width: max-content;
    max-width: 220px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: 0 5px 16px #11182726;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.sf-product__flag[data-country-name]::before {
    content: '';
    position: absolute;
    right: 8px;
    bottom: calc(100% - 2px);
    border: 6px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.sf-product__flag[data-country-name]:is(:hover,:focus-visible)::after,
.sf-product__flag[data-country-name]:is(:hover,:focus-visible)::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media(prefers-reduced-motion:reduce){.sf-product__flag[data-country-name]::after{transition:none}}

.sf-product {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 486px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sf-card-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(14, 25, 48, .025);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sf-product:hover {
    border-color: rgba(247, 0, 88, .42);
    box-shadow: 0 12px 30px rgba(58, 18, 34, .09);
    transform: translateY(-2px);
}

.sf-product__media {
    position: relative;
    display: grid;
    min-height: 262px;
    place-items: center;
    padding: 36px 28px 8px;
    background: #fff;
}

.sf-product__image-link {
    display: grid;
    width: 100%;
    height: 218px;
    place-items: center;
}

.sf-product__media .sf-product__image-link > img {
    width: 100%;
    height: 100%;
    max-width: 178px;
    object-fit: contain;
    object-position: center;
    transition: transform .2s ease;
}

.sf-product:hover .sf-product__image-link > img { transform: scale(1.025); }

.sf-product__badges {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: flex;
    max-width: calc(100% - 64px);
    flex-wrap: wrap;
    gap: 6px;
}

.sf-product__badge {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 11px;
    background: var(--sf-card-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.sf-product__badge--sale { background: var(--sf-card-pink); }
.sf-product__badge--quantity { background: #f2f3f5; color: #172033; }

.sf-product__heart {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--sf-card-ink);
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.sf-product__heart:hover { color: var(--sf-card-pink); transform: scale(1.08); }
.sf-product__heart svg { width: 25px; height: 25px; overflow: visible; }
.sf-product__heart path { fill: transparent; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.65; }
.sf-product__heart.is-active { background: var(--sf-card-pink-soft); color: var(--sf-card-pink); }
.sf-product__heart.is-active path { fill: currentColor; }

.sf-product__flag {
    position: absolute;
    right: 16px;
    bottom: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(14, 25, 48, .08);
}

.sf-product__flag img { display: block; width: 34px; height: 34px; object-fit: cover; }

.sf-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 15px 15px;
}

.sf-product__body h3 {
    min-height: 39px;
    margin: 0 0 5px;
    color: var(--sf-card-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.38;
}

.sf-product__body h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sf-product__description {
    min-height: 36px;
    margin: 0 0 8px;
    color: var(--sf-card-muted);
    font-size: 11.5px;
    line-height: 1.48;
}

.sf-product__description a { color: var(--sf-card-pink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sf-product__description--empty { visibility: hidden; }

.sf-stars {
    display: flex;
    min-height: 20px;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
}

.sf-stars__icons { display: inline-flex; gap: 1px; color: #d7d9df; font-size: 15px; letter-spacing: -.5px; line-height: 1; }
.sf-stars__icons .is-filled { color: var(--sf-card-orange); }
.sf-stars__count { color: #687083; font-size: 10.5px; line-height: 1; }

.sf-product .sf-stock {
    display: flex;
    min-height: 17px;
    align-items: center;
    gap: 5px;
    margin: 0 0 9px;
    color: var(--sf-card-green);
    font-size: 10.5px;
    font-weight: 800;
}

.sf-product .sf-stock > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--sf-card-green); }
.sf-product .sf-stock--out { color: #d63f5f; }
.sf-product .sf-stock--out > span { background: #d63f5f; }

.sf-product__bottom {
    display: flex;
    min-height: 46px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.sf-product__prices { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-bottom: 2px; }
.sf-old-price { color: #8d94a3; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sf-product__price { color: var(--sf-card-ink); font-size: 18px; font-weight: 900; letter-spacing: -.25px; white-space: nowrap; }
.sf-product__price--sale { color: var(--sf-card-pink); }

.sf-product__cart {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: var(--sf-card-pink);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(247, 0, 88, .2);
    transition: transform .16s ease, box-shadow .16s ease;
}

.sf-product__cart:hover { box-shadow: 0 9px 20px rgba(247, 0, 88, .28); transform: translateY(-1px); }
.sf-product__cart:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .45; transform: none; }
.sf-product__cart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }

body.sf-modal-open { overflow: hidden; }
.sf-quantity-modal[hidden] { display: none !important; }
.sf-quantity-modal { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 24px; }
.sf-quantity-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7, 13, 27, .72); backdrop-filter: blur(2px); cursor: default; }
.sf-quantity-modal__dialog { position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 18px; padding: 27px 32px 31px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); color: var(--sf-card-ink); }
.sf-quantity-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sf-quantity-modal__header h2 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.45px; }
.sf-quantity-modal__close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e5e0e3; border-radius: 50%; background: #fff; color: #72798a; cursor: pointer; }
.sf-quantity-modal__close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.sf-quantity-modal__product { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 17px; margin-bottom: 16px; padding: 0 15px; }
.sf-quantity-modal__product > img { width: 58px; height: 82px; object-fit: contain; }
.sf-quantity-modal__product h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.sf-quantity-modal__product > strong { font-size: 16px; font-weight: 800; white-space: nowrap; }
.sf-quantity-modal__product .sf-stock { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--sf-card-green); font-size: 12px; }
.sf-quantity-modal__product .sf-stock span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sf-quantity-modal__product .sf-stock b { font-weight: 800; }
.sf-quantity-modal__product .sf-stock--out { color: #d63f5f; }
.sf-quantity-modal__tiers { overflow: hidden; border: 1px solid #ded8dc; border-radius: 11px; }
.sf-quantity-modal__tier { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; border: 0; border-bottom: 1px solid #e8e3e6; background: #fff; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.sf-quantity-modal__tier:hover { background: #fff7fa; }
.sf-quantity-modal__tier:focus-visible { outline: 2px solid var(--sf-card-pink); outline-offset: -3px; }
.sf-quantity-modal__tier:last-child { border-bottom: 0; }
.sf-quantity-modal__tier > span { display: flex; align-items: center; gap: 8px; }
.sf-quantity-modal__tier i { display: inline-grid; width: 21px; height: 21px; flex-shrink: 0; place-items: center; border-radius: 50%; background: var(--sf-card-pink); color: #fff; font-size: 12px; font-style: normal; font-weight: 900; opacity: 0; }
.sf-quantity-modal__tier.is-active i { opacity: 1; }
.sf-quantity-modal__tier em { border-radius: 999px; padding: 5px 10px; background: var(--sf-card-pink-soft); color: var(--sf-card-pink); font-size: 10px; font-style: normal; }
.sf-quantity-modal__tier strong { font-weight: 700; white-space: nowrap; }
.sf-quantity-modal__tier.is-active { background: #fff1f5; color: var(--sf-card-pink); }
.sf-quantity-modal__hint { display: flex; align-items: center; gap: 13px; margin: 18px 0; color: var(--sf-card-ink); font-size: 13px; }
.sf-quantity-modal__hint[hidden] { display: flex; visibility: hidden; }
.sf-quantity-modal__hint > span { min-height: 38px; }
.sf-quantity-modal__hint svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: var(--sf-card-pink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.sf-quantity-modal__hint b, .sf-quantity-modal__hint strong { color: var(--sf-card-pink); }
.sf-quantity-modal__controls { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 24px; align-items: end; }
.sf-quantity-modal__quantity label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.sf-quantity-modal__stepper { display: grid; width: 185px; max-width: 100%; height: 48px; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; overflow: hidden; border: 1px solid #eee3e8; border-radius: 9px; background: #fff; }
.sf-quantity-modal__stepper button { height: 100%; border: 0; background: transparent; color: var(--sf-card-pink); font-size: 24px; cursor: pointer; }
.sf-quantity-modal__value { position: relative; display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; }
.sf-quantity-modal__stepper input { box-sizing: border-box; width: 100%; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--sf-card-ink); font: inherit; font-size: 16px; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.sf-quantity-modal__stepper input:focus-visible { outline: 2px solid var(--sf-card-pink); outline-offset: 3px; }
.sf-quantity-modal__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sf-quantity-modal__stepper span { font-size: 14px; font-weight: 800; }
.sf-quantity-modal__value > span { position: absolute; right: 4px; font-size: 11px; font-weight: 500; pointer-events: none; }
.sf-quantity-modal__summary { display: grid; min-height: 92px; align-content: center; gap: 8px; margin: 0; border: 1px solid #f0dfe6; border-radius: 11px; padding: 16px 20px; background: #fff8fa; }
.sf-quantity-modal__summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.sf-quantity-modal__summary dt, .sf-quantity-modal__summary dd { margin: 0; font-size: 13px; }
.sf-quantity-modal__summary dd { font-weight: 800; }
.sf-quantity-modal__summary .is-saving { color: #2eaa2c; }
.sf-quantity-modal__status { min-height: 18px; margin: 8px 0 0; color: #c22c4c; font-size: 12px; }
.sf-quantity-modal__footer { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; margin-top: 19px; }
.sf-quantity-modal__cancel, .sf-quantity-modal__add { min-height: 55px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.sf-quantity-modal__cancel { border: 1px solid #ddd4d9; background: #fff; color: var(--sf-card-ink); }
.sf-quantity-modal__add { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; background: var(--sf-card-pink); color: #fff; }
.sf-quantity-modal__add svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

@media (max-width: 900px) {
    .sf-product { min-height: 450px; }
    .sf-product__media { min-height: 232px; padding-inline: 18px; }
    .sf-product__image-link { height: 190px; }
    .sf-product__body { padding-inline: 13px; }
}

@media (max-width: 620px) {
    .sf-product { min-height: 405px; border-radius: 12px; }
    .sf-product__media { min-height: 196px; padding: 32px 13px 6px; }
    .sf-product__image-link { height: 158px; }
    .sf-product__media .sf-product__image-link > img { max-width: 128px; }
    .sf-product__badges { top: 9px; left: 9px; gap: 4px; }
    .sf-product__badge { min-height: 20px; padding: 3px 7px; font-size: 8px; }
    .sf-product__heart { top: 7px; right: 7px; width: 32px; height: 32px; }
    .sf-product__heart svg { width: 22px; height: 22px; }
    .sf-product__flag, .sf-product__flag img { width: 29px; height: 29px; }
    .sf-product__flag { right: 10px; bottom: 7px; }
    .sf-product__body { padding: 8px 10px 11px; }
    .sf-product__body h3 { min-height: 35px; font-size: 12px; }
    .sf-product__description { min-height: 31px; font-size: 9.5px; }
    .sf-stars__icons { font-size: 12px; }
    .sf-stars__count, .sf-product .sf-stock { font-size: 9px; }
    .sf-product__price { font-size: 15px; }
    .sf-old-price { font-size: 10px; }
    .sf-product__cart { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; }
    .sf-product__cart svg { width: 20px; height: 20px; }
    .sf-quantity-modal { align-items: end; padding: 0; }
    .sf-quantity-modal__dialog { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; padding: 21px 17px calc(20px + env(safe-area-inset-bottom)); }
    .sf-quantity-modal__header h2 { font-size: 22px; }
    .sf-quantity-modal__product { grid-template-columns: 51px minmax(0, 1fr); gap: 12px; padding: 0 4px; }
    .sf-quantity-modal__product > img { width: 46px; height: 66px; }
    .sf-quantity-modal__product > strong { grid-column: 2; font-size: 14px; }
    .sf-quantity-modal__tier { min-height: 44px; padding: 0 12px; font-size: 12px; }
    .sf-quantity-modal__tier em { display: none; }
    .sf-quantity-modal__controls { grid-template-columns: 1fr; }
    .sf-quantity-modal__stepper { height: 48px; }
    .sf-quantity-modal__summary { min-height: 84px; }
    .sf-quantity-modal__footer { grid-template-columns: 1fr; }
    .sf-quantity-modal__cancel { order: 2; min-height: 46px; }
}

/* Keep price and the complete action readable on narrow merchandising shelves. */
.sf-product__bottom { align-items: center; flex-wrap: wrap; }
.sf-product:not(.sf-catalog-card) .sf-product__bottom { flex-direction: column; align-items: stretch; }
.sf-product:not(.sf-catalog-card) .sf-product__bottom .sf-product__prices { flex: 0 0 auto; width: 100%; }
.sf-product:not(.sf-catalog-card) .sf-product__bottom .sf-card-cart,
.sf-product:not(.sf-catalog-card) .sf-product__bottom > .sf-product__cart--text { width: 80%; margin-inline: auto; }
@media(max-width:620px) {
    .sf-product .sf-product__cart--text { height: 39px; font-size: 12px; }
    .sf-card-cart { width: 140px; }
    .sf-card-stepper { height: 39px; grid-template-columns: 37px minmax(30px,1fr) 37px; }
    .sf-product:not(.sf-catalog-card) .sf-product__bottom .sf-card-cart { width: 80%; }
    .sf-product .sf-product__availability { min-height: 39px; font-size: 12px; }
}

/* Shared cart controls on home, catalogue, related and upsell cards. */
.sf-product__path { display: flex; gap: 8px; overflow: hidden; margin: 0 0 8px; color: #62718a; font-size: 10px; white-space: nowrap; }
.sf-product__path a { overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
.sf-product__path { min-height: 14px; }
.sf-product__path a:hover,.sf-product__path a:focus-visible,
.sf-catalog-card__path a:hover,.sf-catalog-card__path a:focus-visible { color: var(--sf-card-pink); }
.sf-product__brand { margin: 0 0 5px; color: #62718a; font-size: 11.5px; }
.sf-product__brand a, .sf-product__brand > span { color: var(--sf-card-pink); }
.sf-card-cart { min-width: 0; width: 150px; max-width: 100%; flex: 0 0 auto; }
.sf-card-cart [hidden], .sf-product__prices [hidden] { display: none !important; }
.sf-product .sf-product__cart--text {
    display: flex; width: 100%; min-width: 0; height: 43px; padding: 0 12px;
    align-items: center; justify-content: center; gap: 8px; flex-basis: auto;
    font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; text-decoration: none;
}
.sf-product .sf-product__cart--text svg { width: 23px; height: 23px; flex-shrink: 0; }
.sf-card-stepper {
    display: grid; width: 100%; height: 43px; grid-template-columns: 42px minmax(32px,1fr) 42px;
    border: 1px solid var(--sf-card-pink); border-radius: 9px; overflow: hidden; background: #fff;
}
.sf-card-stepper button { border: 0; background: #fff1f6; color: var(--sf-card-pink); font: inherit; font-size: 25px; cursor: pointer; }
.sf-card-stepper button:last-child { background: var(--sf-card-pink); color: #fff; }
.sf-card-stepper output { display: grid; place-items: center; min-width: 0; border-inline: 1px solid #eee6eb; font-size: 16px; font-weight: 800; color: var(--sf-card-ink); }
.sf-card-cart[aria-busy=true] { opacity: .7; }
.sf-card-stepper button:focus-visible, .sf-product__cart--text:focus-visible { outline: 3px solid #13233d; outline-offset: -3px; }
.sf-product .sf-product__unit { display: block; width: 100%; color: var(--sf-card-muted); font-size: 11px; font-weight: 400; line-height: 1.2; }
.sf-product .sf-product__availability {
    display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
    min-height: 44px; margin: 0; padding: 10px 14px; border-top: 1px solid #ffe0ec;
    font-size: 14px; font-weight: 800; line-height: 1.3;
}
.sf-product__availability svg { width: 18px; height: 18px; flex: 0 0 18px; }

