/* input(421,36): run-time error CSS1019: Unexpected token, found ' '
input(421,36): run-time error CSS1019: Unexpected token, found ' '
input(421,36): run-time error CSS1042: Expected function, found ' '
input(421,36): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(547,38): run-time error CSS1019: Unexpected token, found ' '
input(547,38): run-time error CSS1019: Unexpected token, found ' '
input(547,38): run-time error CSS1042: Expected function, found ' '
input(547,38): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' ' */
/* ==========================================================
   SHEHRAZAD MODERN — HOME PAGE
   Layout follows the reference design: categories sidebar +
   hero / app card / trust strip / deals, then category circles,
   promo tiles and a bottom trust strip.
   Content is managed in /admin/shehrazadmodernsetup.
   Tokens come from theme-shehrazad-modern.css.
   ========================================================== */

.shm-home {
    max-width: var(--sh-container, 1440px) !important;
    margin: 0 auto !important;
    padding: 6px 20px 64px !important;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: var(--sh-font);
    color: var(--sh-ink);
}

.shm-home *,
.shm-home *::before,
.shm-home *::after {
    box-sizing: border-box;
}

.shm-home a {
    text-decoration: none;
}

.shm-home ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Forward arrows point right in English and left in Arabic */
.shm-home a > svg,
.shm-tile-cta svg,
.shm-next svg,
.shm-sidebar-chev {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[dir="rtl"] .shm-home a > svg,
html[dir="rtl"] .shm-home .shm-tile-cta svg,
html[dir="rtl"] .shm-next svg,
html[dir="rtl"] .shm-sidebar-chev {
    transform: scaleX(-1);
}

/* ---------- Buttons ---------- */
.shm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s var(--sh-ease), color .2s var(--sh-ease), transform .2s var(--sh-ease);
}

.shm-btn--ink {
    background: var(--sh-ink);
    color: #fff !important;
}

.shm-btn--brand {
    background: var(--sh-brand);
    color: #fff !important;
}

a:hover > .shm-slide-copy .shm-btn--ink,
.shm-btn--ink:hover {
    background: var(--sh-brand);
}

.shm-btn--brand:hover {
    background: var(--sh-brand-strong);
}

.shm-eyebrow {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sh-brand);
}

/* Cards */
.shm-sidebar,
.shm-trust,
.shm-row,
.shm-circles-row {
    background: var(--sh-surface);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-sm);
}

/* ==========================================================
   TOP: sidebar | main
   ========================================================== */
.shm-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.shm-top-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

@media (min-width: 1200px) {
    .shm-home.has-sidebar .shm-top {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}

/* ---------- Categories sidebar ---------- */
.shm-sidebar {
    position: relative;
    z-index: 5;
    display: none;
}

@media (min-width: 1200px) {
    .shm-sidebar {
        display: block;
    }
}

.shm-sidebar.is-empty {
    display: none !important;
}

.shm-sidebar::before {
    content: attr(aria-label);
    display: flex;
    align-items: center;
    height: 52px;
    padding-inline: 48px 18px;
    background: var(--sh-line-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1a24' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='9' y1='6' x2='20' y2='6'/%3E%3Cline x1='9' y1='12' x2='20' y2='12'/%3E%3Cline x1='9' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='4.5' cy='6' r='1'/%3E%3Ccircle cx='4.5' cy='12' r='1'/%3E%3Ccircle cx='4.5' cy='18' r='1'/%3E%3C/svg%3E") no-repeat;
    background-size: 20px 20px;
    background-position: 18px center;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0;
    font-size: .95rem;
    font-weight: 600;
}

html[dir="rtl"] .shm-sidebar::before {
    background-position: calc(100% - 18px) center;
}

.shm-sidebar-list {
    padding: 6px 0 !important;
}

.shm-sidebar-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    color: var(--sh-ink) !important;
    font-size: .84rem;
    transition: background .15s var(--sh-ease), color .15s var(--sh-ease);
}

.shm-sidebar-list > li + li > a {
    border-top: 1px solid var(--sh-line-soft);
}

.shm-sidebar-list > li > a:hover {
    background: var(--sh-brand-soft);
    color: var(--sh-brand-strong) !important;
}

.shm-sidebar-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sh-line-soft);
}

.shm-sidebar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shm-sidebar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.shm-sidebar-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shm-sidebar-count {
    flex-shrink: 0;
    font-size: .74rem;
    color: var(--sh-muted);
}

.shm-sidebar-chev {
    color: var(--sh-muted);
}

/* Sub-category flyout: opens beside the sidebar on hover / keyboard focus */
.shm-sidebar-list > li.has-sub:hover > a,
.shm-sidebar-list > li.has-sub:focus-within > a {
    background: var(--sh-brand-soft);
    color: var(--sh-brand-strong) !important;
}

.shm-flyout {
    position: absolute;
    top: 0;
    inset-inline-start: calc(100% + 8px);
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    /* Hover intent: open after a short pause, close a bit later, so moving
       the pointer diagonally across other rows keeps the right panel open */
    transition: opacity .15s var(--sh-ease) .3s, visibility 0s linear .3s;
    width: min(760px, calc(100vw - 340px));
    min-height: 100%;
    max-height: 560px;
    overflow-y: auto;
    padding: 18px 22px 22px;
    background: var(--sh-surface);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg);
}

/* Invisible bridge so the pointer can travel from the row to the panel */
.shm-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: -10px;
    width: 10px;
}

.shm-sidebar-list > li.has-sub:hover > .shm-flyout,
.shm-sidebar-list > li.has-sub:focus-within > .shm-flyout {
    z-index: 21;
    visibility: visible;
    opacity: 1;
    transition-delay: .12s, .12s;
}

.shm-flyout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--sh-line-soft);
}

.shm-flyout-head b {
    font-size: 1rem;
    font-weight: 700;
}

.shm-flyout-head a {
    color: var(--sh-brand) !important;
    font-size: .82rem;
    font-weight: 600;
}

.shm-flyout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
}

.shm-flyout-col {
    min-width: 0;
}

.shm-flyout-title {
    display: block;
    margin-bottom: 6px;
    color: var(--sh-ink) !important;
    font-size: .88rem;
    font-weight: 600;
}

.shm-flyout ul li a {
    display: block;
    padding: 3px 0;
    color: var(--sh-ink-2) !important;
    font-size: .8rem;
    line-height: 1.4;
}

.shm-flyout-title:hover,
.shm-flyout ul li a:hover {
    color: var(--sh-brand) !important;
}

.shm-sidebar-list.is-skeleton li span {
    display: block;
    height: 34px;
    margin: 7px 16px;
    border-radius: 8px;
}

.shm-sidebar-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 10px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--sh-brand-soft);
    color: var(--sh-brand) !important;
    font-size: .86rem;
    font-weight: 600;
}

.shm-sidebar-all:hover {
    background: var(--sh-brand);
    color: #fff !important;
}

/* ---------- Hero + app card ---------- */
.shm-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 16px;
}

.shm-hero-row.no-app {
    grid-template-columns: minmax(0, 1fr);
}

.shm-hero {
    position: relative;
    min-height: 310px;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background: #f4e6df;
}

.shm-hero-swiper {
    position: absolute !important;
    inset: 0;
}

.shm-hero-swiper .swiper-wrapper,
.shm-hero-swiper .swiper-slide {
    height: 100%;
}

.shm-slide {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 310px;
    color: var(--sh-ink) !important;
    overflow: hidden;
}

.shm-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shm-slide-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: min(56%, 440px);
    padding: 36px 44px;
}

.shm-hero-title {
    display: block;
    font-size: clamp(1.7rem, 1rem + 1.7vw, 2.55rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
}

.shm-hero-title em,
.shm-app-title em {
    display: block;
    font-style: normal;
    color: var(--sh-brand);
}

.shm-hero-sub {
    display: block;
    max-width: 300px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--sh-ink-2);
}

.shm-slide-copy .shm-btn {
    margin-top: 6px;
}

/* Branded background while no slide image is uploaded */
.shm-slide--fallback {
    background:
        radial-gradient(60% 90% at 85% 40%, rgba(226, 36, 95, .18), transparent 70%),
        linear-gradient(120deg, #fbf3ee 0%, #f7e6dd 55%, #f6dfe6 100%);
}

html[dir="rtl"] .shm-slide--fallback {
    background:
        radial-gradient(60% 90% at 15% 40%, rgba(226, 36, 95, .18), transparent 70%),
        linear-gradient(240deg, #fbf3ee 0%, #f7e6dd 55%, #f6dfe6 100%);
}

.shm-slide-art {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 46%;
    pointer-events: none;
}

.shm-slide-art span {
    position: absolute;
    border-radius: 50%;
}

.shm-slide-art span:nth-child(1) {
    width: 280px;
    height: 280px;
    top: 50%;
    inset-inline-end: 40px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 30%, #fff 0%, #fbd3df 40%, #e2245f 100%);
    opacity: .85;
    box-shadow: 0 30px 60px -20px rgba(226, 36, 95, .45);
}

.shm-slide-art span:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: 22px;
    inset-inline-end: 250px;
    border: 2px solid rgba(181, 138, 60, .45);
}

.shm-slide-art span:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 34px;
    inset-inline-end: 18px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 10px 30px -10px rgba(29, 23, 38, .25);
}

.shm-hero-dots {
    bottom: 18px !important;
    inset-inline-start: 44px !important;
    left: auto !important;
    width: auto !important;
    text-align: start;
}

.shm-hero-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px !important;
    background: rgba(27, 26, 36, .25);
    opacity: 1;
    transition: width .25s var(--sh-ease);
}

.shm-hero-dots .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 6px;
    background: var(--sh-brand);
}

/* App card */
.shm-app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 310px;
    padding: 34px 30px 26px;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 90% 10%, rgba(203, 214, 255, .55), transparent 70%),
        linear-gradient(135deg, #fde9f0 0%, #f8eaf6 55%, #ecf1fd 100%);
}

.shm-app > *:not(.shm-app-visual) {
    position: relative;
    z-index: 2;
    max-width: 54%;
}

.shm-app-title {
    margin: 0 !important;
    font-size: clamp(1.45rem, .9rem + 1.1vw, 1.95rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.shm-app-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--sh-ink-2);
}

.shm-app-stores {
    display: flex;
    gap: 8px;
    margin-top: auto;
    max-width: none !important;
}

.shm-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #111;
    color: #fff !important;
    transition: transform .2s var(--sh-ease);
}

.shm-store:hover {
    transform: translateY(-2px);
}

.shm-store i {
    font-size: 1.2rem;
}

.shm-store span {
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.05;
    white-space: nowrap;
}

.shm-store small {
    font-size: .56rem;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.shm-app-visual {
    position: absolute;
    inset-block: 18px 62px;
    inset-inline-end: 18px;
    width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shm-app-visual > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(29, 23, 38, .2));
}

.shm-phone {
    position: relative;
    width: 112px;
    height: 210px;
    border-radius: 26px;
    background: #1b1a24;
    box-shadow: 0 30px 50px -18px rgba(29, 23, 38, .45);
    transform: rotate(-6deg);
}

.shm-phone::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 19px;
    background: linear-gradient(180deg, #fff 0%, #fde9f0 100%);
}

.shm-phone img {
    position: relative;
    display: block;
    width: 70%;
    margin: 76px auto 0;
}

/* ---------- Trust strips ---------- */
.shm-trust {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 14px 6px !important;
}

.shm-trust li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 18px;
    min-width: 0;
}

.shm-trust li + li {
    border-inline-start: 1px solid var(--sh-line);
}

.shm-trust-icon {
    display: inline-flex;
    font-size: 1.5rem;
    color: var(--sh-ink);
}

.shm-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.shm-trust-text b {
    font-size: .86rem;
    font-weight: 600;
}

.shm-trust-text small {
    font-size: .78rem;
    color: var(--sh-muted);
}

/* ==========================================================
   DEALS: flash sale + trending
   ========================================================== */
.shm-deals {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 1480px) {
    .shm-deals:not(.is-single) {
        grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    }
}

.shm-row {
    position: relative;
    min-width: 0;
    padding: 12px;
}

.shm-row.is-empty {
    display: none !important;
}

.shm-flash {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
}

.shm-flash-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px;
    border-radius: 12px;
    background: linear-gradient(160deg, #ef4a7f 0%, #e2245f 55%, #c3174c 100%);
    color: #fff;
}

.shm-flash-bolt {
    font-size: 1.4rem;
}

.shm-flash-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.2 !important;
}

.shm-flash-sub {
    margin: 0;
    font-size: .82rem;
    opacity: .9;
}

.shm-countdown {
    display: flex;
    gap: 5px;
}

.shm-countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.shm-countdown b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    color: var(--sh-brand);
    font-size: .88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.shm-countdown small {
    font-size: .58rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .9;
}

.shm-flash-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #fff !important;
    font-size: .8rem;
    font-weight: 600;
}

.shm-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 6px 12px;
}

.shm-row-title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.shm-row-sub {
    margin: 2px 0 0;
    font-size: .8rem;
    color: var(--sh-muted);
}

.shm-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sh-ink-2) !important;
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
}

.shm-view-all:hover {
    color: var(--sh-brand) !important;
}

/* Horizontal product scroller: five cards per view on desktop */
.shm-scroller {
    --per-view: 5;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * 8px) / var(--per-view));
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    min-width: 0;
}

.shm-scroller::-webkit-scrollbar {
    display: none;
}

.shm-next {
    position: absolute;
    top: 55%;
    inset-inline-end: -14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--sh-line);
    border-radius: 50%;
    background: #fff;
    color: var(--sh-ink);
    box-shadow: var(--sh-shadow);
    cursor: pointer;
}

.shm-next:hover {
    color: var(--sh-brand);
}

/* ---------- Product card ---------- */
.shm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
    transition: box-shadow .2s var(--sh-ease), border-color .2s var(--sh-ease);
}

.shm-card:hover {
    border-color: transparent;
    box-shadow: var(--sh-shadow);
}

.shm-card.is-skeleton {
    min-height: 220px;
}

.shm-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sh-line-soft);
}

.shm-card-media > a:first-child,
.shm-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.shm-card-media img {
    object-fit: cover;
    transition: transform .4s var(--sh-ease);
}

.shm-card:hover .shm-card-media img {
    transform: scale(1.05);
}

.shm-card-off {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--sh-brand);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
}

.shm-card-oos {
    position: absolute;
    inset-inline: 6px;
    bottom: 6px;
    padding: 3px;
    border-radius: 4px;
    background: rgba(27, 26, 36, .78);
    color: #fff;
    font-size: .66rem;
    text-align: center;
}

.shm-card-fav {
    position: absolute !important;
    top: 6px;
    inset-inline-end: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--sh-ink-2) !important;
    box-shadow: 0 2px 6px rgba(27, 26, 36, .12);
}

.shm-card-fav svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.shm-card-fav.p-fav {
    color: var(--sh-brand) !important;
}

.shm-card-fav.p-fav svg {
    fill: currentColor;
}

.shm-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    padding: 8px 2px 0;
}

.shm-card-name {
    display: block;
    overflow: hidden;
    color: var(--sh-ink) !important;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shm-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
}

.shm-card-price b {
    font-size: .8rem;
    font-weight: 700;
}

.shm-card-price del {
    font-size: .66rem;
    color: var(--sh-muted);
}

.shm-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    white-space: nowrap;
}

.shm-card-rating i {
    font-size: .66rem;
    color: #f5a623;
}

.shm-card-rating b {
    font-weight: 500;
}

.shm-card-rating span {
    color: var(--sh-muted);
}

.shm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.shm-card-sold {
    overflow: hidden;
    font-size: .68rem;
    color: var(--sh-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shm-card-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sh-ink);
    cursor: pointer;
    transition: background .2s var(--sh-ease), color .2s var(--sh-ease);
}

.shm-card-cart:hover {
    background: var(--sh-brand);
    color: #fff;
}

.shm-card-cart svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================
   HERO BANNERS + ADS STRIP (shared hero banner partial)
   ========================================================== */
.shm-banners.homepage-banner {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
}

.shm-banners:not(:has(.swiper-slide)),
.shm-banners.hero-banner-empty {
    display: none !important;
}

.shm-banners .swiper,
.shm-banners .swiper-slide {
    height: auto !important;
}

.shm-banners .swiper-slide img {
    display: block;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.shm-banners .swiper-pagination-bullet-active {
    background: var(--sh-brand) !important;
}

.shm-banners .swiper-button-next,
.shm-banners .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--sh-ink) !important;
    box-shadow: var(--sh-shadow);
    opacity: 0;
    transition: opacity .2s var(--sh-ease);
}

.shm-banners .swiper-button-next::after,
.shm-banners .swiper-button-prev::after {
    font-size: 15px !important;
    font-weight: 700;
}

.shm-banners:hover .swiper-button-next,
.shm-banners:hover .swiper-button-prev {
    opacity: 1;
}

/* ==========================================================
   CATEGORY CIRCLES + SIGN-UP CARD
   ========================================================== */
.shm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 16px;
}

.shm-split.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.shm-circles-row {
    padding: 14px 10px;
}

.shm-circles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shm-circles::-webkit-scrollbar {
    display: none;
}

.shm-circles li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    color: var(--sh-ink) !important;
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
}

.shm-circle-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #fdeef3;
    transition: transform .25s var(--sh-ease), box-shadow .25s var(--sh-ease);
}

.shm-circles li:nth-child(4n + 2) .shm-circle-img { background: #eaf1fb; }
.shm-circles li:nth-child(4n + 3) .shm-circle-img { background: #fbf1e6; }
.shm-circles li:nth-child(4n + 4) .shm-circle-img { background: #eef6f1; }

.shm-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shm-circles li a:hover .shm-circle-img {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sh-brand);
}

.shm-circles li a:hover {
    color: var(--sh-brand) !important;
}

.shm-circle-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.shm-signup {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 100px;
    padding: 18px 22px;
    border: 1px solid #f7d5e1;
    border-radius: var(--sh-radius);
    overflow: hidden;
    background: linear-gradient(120deg, #fff0f5 0%, #fde3ec 100%);
    color: var(--sh-ink) !important;
}

.shm-signup-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.shm-signup-title {
    font-size: .95rem;
    font-weight: 600;
}

.shm-signup-highlight {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sh-brand);
}

.shm-signup-text {
    font-size: .8rem;
    color: var(--sh-muted);
}

.shm-signup .shm-btn {
    height: 32px;
    margin-top: 6px;
    padding: 0 14px;
    border: 1px solid var(--sh-line);
    background: #fff;
    color: var(--sh-ink) !important;
    font-size: .72rem;
}

.shm-signup:hover .shm-btn {
    background: var(--sh-brand);
    border-color: var(--sh-brand);
    color: #fff !important;
}

.shm-signup-img {
    max-width: 38%;
    max-height: 110px;
    object-fit: contain;
}

.shm-signup-gift {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #ff6f9b, #e2245f);
    color: #fff;
    font-size: 2rem;
    transform: rotate(-8deg);
    box-shadow: 0 16px 30px -12px rgba(226, 36, 95, .6);
}

/* ==========================================================
   PROMO TILES
   ========================================================== */
.shm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.shm-tile {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 116px;
    padding: 20px 24px;
    border-radius: var(--sh-radius);
    overflow: hidden;
    background: var(--tile-bg, #fdeef3);
    color: var(--sh-ink) !important;
    isolation: isolate;
    transition: transform .25s var(--sh-ease), box-shadow .25s var(--sh-ease);
}

.shm-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-shadow);
}

.shm-tile-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 60%;
}

.shm-tile-title {
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.shm-tile-sub {
    font-size: .8rem;
    color: var(--sh-ink-2);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.shm-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shm-tile:hover .shm-tile-cta {
    color: var(--sh-brand);
}

.shm-tile-img {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 48%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.shm-tile-art {
    position: absolute;
    top: 50%;
    inset-inline-end: -26px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15) 70%);
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .35);
}

/* ==========================================================
   CURATED PRODUCT SECTIONS · SELLERS · BLOG · PARTNERS
   ========================================================== */
.shm-collections > .container,
.shm-extra > .container {
    max-width: none !important;
    padding: 0 !important;
}

.shm-collections:empty,
.shm-extra:empty,
.shm-extra:not(:has(img, a, h2, h3)) {
    display: none;
}

.shm-collections #dvproducthome {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shm-collections .cl-section-card {
    margin: 0 !important;
    padding: 18px !important;
    background: var(--sh-surface) !important;
    border: 1px solid var(--sh-line) !important;
    border-radius: var(--sh-radius) !important;
    box-shadow: var(--sh-shadow-sm) !important;
}

.shm-collections .cl-home-block-banner {
    margin: 0 0 16px !important;
    border-radius: var(--sh-radius-sm) !important;
    overflow: hidden !important;
}

.shm-collections .cl-home-block-banner img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.shm-collections .product-home-heading {
    margin: 0 0 14px !important;
}

.shm-collections .cl-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 34px !important;
    padding: 0 14px !important;
    border: 1px solid var(--sh-line) !important;
    border-radius: var(--sh-pill) !important;
    background: var(--sh-surface) !important;
    color: var(--sh-ink) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
}

.shm-collections .cl-view-all:hover {
    border-color: var(--sh-brand) !important;
    color: var(--sh-brand) !important;
}

/* ---------- Loading placeholders ---------- */
.shm-card.is-skeleton,
.is-skeleton .shm-circle-img,
.shm-sidebar-list.is-skeleton li span {
    background: linear-gradient(90deg, var(--sh-line-soft) 0%, #fafafc 50%, var(--sh-line-soft) 100%);
    background-size: 200% 100%;
    animation: shm-shimmer 1.4s linear infinite;
    border-color: transparent;
}

@keyframes shm-shimmer {
    to { background-position: -200% 0; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1399px) {
    .shm-trust li {
        justify-content: flex-start;
        padding: 4px 14px;
    }
}

@media (max-width: 1199px) {
    .shm-split {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 991px) {
    .shm-home {
        gap: 14px;
        padding: 12px 14px 96px !important;
    }

    .shm-hero-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .shm-hero,
    .shm-slide {
        min-height: 260px;
    }

    .shm-app {
        min-height: 0;
        padding: 22px;
    }

    .shm-app > *:not(.shm-app-visual) {
        max-width: 62%;
    }

    .shm-app-visual {
        inset-block: 14px;
        width: 34%;
    }

    .shm-trust {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 12px;
    }

    .shm-trust li + li {
        border-inline-start: 0;
    }

    .shm-scroller {
        --per-view: 3.3;
    }

    .shm-next {
        display: none;
    }

    .shm-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .shm-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shm-collections .cl-section-card {
        padding: 14px !important;
    }
}

@media (max-width: 767px) {
    .shm-home {
        gap: 12px;
        padding: 10px 12px 96px !important;
    }

    .shm-hero,
    .shm-slide {
        min-height: 220px;
        border-radius: var(--sh-radius);
    }

    .shm-slide-copy {
        max-width: 72%;
        gap: 8px;
        padding: 22px;
    }

    .shm-hero-sub {
        font-size: .86rem;
    }

    .shm-btn {
        height: 38px;
        padding: 0 16px;
        font-size: .74rem;
    }

    .shm-slide-art {
        width: 50%;
        opacity: .6;
    }

    .shm-slide-art span:nth-child(1) {
        width: 180px;
        height: 180px;
        inset-inline-end: -30px;
    }

    .shm-slide-art span:nth-child(2) {
        display: none;
    }

    .shm-hero-dots {
        inset-inline-start: 22px !important;
        bottom: 12px !important;
    }

    .shm-app-title {
        font-size: 1.3rem !important;
    }

    .shm-app {
        gap: 10px;
    }

    .shm-app > *:not(.shm-app-visual) {
        max-width: 100%;
    }

    .shm-app-visual {
        display: none;
    }

    .shm-store {
        height: 36px;
        padding: 0 10px;
    }

    .shm-trust {
        padding: 12px 4px !important;
    }

    .shm-trust li {
        gap: 10px;
        padding: 2px 10px;
    }

    .shm-trust-icon {
        font-size: 1.25rem;
    }

    .shm-trust-text b {
        font-size: .8rem;
    }

    .shm-trust-text small {
        font-size: .72rem;
    }

    .shm-flash {
        grid-template-columns: minmax(0, 1fr);
    }

    .shm-flash-panel {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "bolt title count"
            "bolt sub all";
        align-items: center;
        column-gap: 10px;
        row-gap: 2px;
        padding: 12px 14px;
    }

    .shm-flash-bolt { grid-area: bolt; }
    .shm-flash-title { grid-area: title; }
    .shm-flash-sub { grid-area: sub; }
    .shm-countdown { grid-area: count; justify-self: end; }
    .shm-flash-all { grid-area: all; justify-self: end; margin: 0; }

    .shm-countdown small {
        display: none;
    }

    .shm-scroller {
        --per-view: 2.3;
    }

    .shm-circles {
        grid-auto-columns: 78px;
    }

    .shm-circle-img {
        width: 62px;
        height: 62px;
    }

    .shm-tile {
        min-height: 100px;
        padding: 14px 16px;
    }

    .shm-tile-title {
        font-size: .82rem;
    }

    .shm-tile-sub {
        font-size: .68rem;
    }
}

@media (max-width: 420px) {
    .shm-tiles {
        gap: 10px;
    }

    .shm-tile {
        min-height: 92px;
        padding: 12px 14px;
    }

    .shm-tile-copy {
        max-width: 78%;
    }

    .shm-tile-cta {
        margin-top: 4px;
        font-size: .68rem;
    }

    .shm-tile-art {
        width: 90px;
        height: 90px;
        inset-inline-end: -30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shm-home *,
    .shm-home *::before,
    .shm-home *::after {
        animation: none !important;
        transition: none !important;
    }
}
