:root {
    --shein-black: #000;
    --shein-text: #222;
    --shein-muted: #767676;
    --shein-border: #e5e5e5;
    --shein-bg: #f6f6f6;
    --shein-sale: #cc0c2f;
    --shein-whats: #25d366;
    --header-h: 58px;
    --promo-h: 34px;
    --bottom-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    font-family: Inter, system-ui, sans-serif;
    color: var(--shein-text);
    background: #fff;
    padding-bottom: calc(var(--bottom-h) + var(--safe-bottom));
}
@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.promo-bar {
    background: #000;
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    height: var(--promo-h);
    line-height: var(--promo-h);
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promo-bar.is-carousel {
    padding: 0;
    text-overflow: clip;
    position: relative;
}
.promo-viewport {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.promo-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promo-slide.is-on {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.promo-slide.is-out {
    opacity: 0;
    transform: translateX(-24px);
}
.promo-slide.from-left {
    transform: translateX(-24px);
}
.promo-nav {
    display: none;
}
@media (max-width: 991px) {
    .promo-bar.is-carousel .promo-nav {
        display: flex;
        position: absolute;
        inset: 0;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
        z-index: 1;
    }
    .promo-bar.is-carousel .promo-nav button {
        pointer-events: auto;
        width: 32px;
        height: 100%;
        border: 0;
        background: transparent;
        color: #fff;
        opacity: .55;
        font-size: 12px;
        padding: 0;
    }
}
.promo-full { display: none; }
@media (min-width: 992px) {
    .promo-bar.is-carousel {
        padding: 0 12px;
        text-overflow: ellipsis;
    }
    .promo-bar.is-carousel .promo-viewport,
    .promo-bar.is-carousel .promo-nav { display: none; }
    .promo-bar.is-carousel .promo-full { display: block; }
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--shein-border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 14px;
    max-width: 1440px;
    margin: 0 auto;
}
.brand {
    font-family: Syne, Inter, sans-serif;
    font-weight: 800;
    letter-spacing: .18em;
    font-size: 1.15rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.header-search {
    flex: 1;
    align-items: center;
    gap: 8px;
    background: var(--shein-bg);
    border-radius: 0;
    padding: 0 14px;
    height: 40px;
}
.header-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}
.header-actions { display: flex; margin-left: auto; gap: 2px; }
.icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    background: var(--shein-sale);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.cat-nav {
    max-width: 1440px;
    margin: 0 auto;
    gap: 22px;
    padding: 0 18px 10px;
    overflow-x: auto;
    font-size: 13px;
    font-weight: 500;
}
.cat-nav a:hover { color: var(--shein-sale); }

.mobile-search {
    display: none;
    position: sticky;
    top: calc(var(--promo-h) + var(--header-h));
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--shein-border);
    padding: 8px 12px;
}
.mobile-search.open { display: block; }
.mobile-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--shein-bg);
    padding: 0 12px;
    height: 42px;
}
.mobile-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 15px;
}
.mobile-search button {
    border: 0;
    background: transparent;
    font-size: 13px;
    color: var(--shein-muted);
}

.store-main { min-height: 55vh; }
.section-pad { padding: 18px 0 8px; }
.container-xxl { max-width: 1440px; }

.hero-slide {
    min-height: 280px;
    background: #111 center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 28px 20px 36px;
}
.hero-slide.fallback {
    background: linear-gradient(160deg, #111 0%, #3a3a3a 55%, #111 100%);
    min-height: 340px;
    align-items: center;
    padding: 40px 24px;
}
.hero-slide h1 {
    font-family: Syne, Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 5vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 16px;
}
.hero-slide .eyebrow {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 11px;
    opacity: .8;
}
.hero-slide .caption {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .hero-slide, .hero-slide.fallback { min-height: 420px; padding: 56px 64px; }
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    border: 1px solid var(--shein-border);
    padding: 8px 14px;
    font-size: 13px;
    background: #fff;
    color: #222;
}
.chip.active { background: #000; color: #fff; border-color: #000; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.section-head h2, .listing-head h1, .cart-page h1, .categories-page h1, .about-page h1 {
    font-family: Syne, Inter, sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}
.section-head a { font-size: 13px; color: var(--shein-muted); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.p-card { display: block; background: #fff; }
.p-card .thumb {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--shein-bg);
    overflow: hidden;
}
.p-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.badge-sale, .badge-cond {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    color: #fff;
    background: var(--shein-sale);
    letter-spacing: .04em;
}
.badge-cond { top: auto; bottom: 8px; background: #000; }
.p-card .meta { padding: 8px 4px 12px; }
.p-card .title {
    font-size: 12px;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    margin: 0 0 4px;
}
.p-card .prices { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.p-card .price { font-weight: 700; font-size: 14px; }
.p-card .compare {
    font-size: 12px;
    color: var(--shein-muted);
    text-decoration: line-through;
}
.p-card .off { font-size: 12px; color: var(--shein-sale); font-weight: 600; }

.skel-card, .skel-img, .skel-line {
    background: linear-gradient(90deg, #f2f2f2 25%, #e9e9e9 37%, #f2f2f2 63%);
    background-size: 400% 100%;
    animation: skel 1.2s ease infinite;
}
.skel-card { aspect-ratio: 3/4; }
.skel-card.tall { aspect-ratio: 1/1.1; }
.skel-img { width: 100%; aspect-ratio: 3/4; }
.skel-line { height: 14px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.crumbs { font-size: 12px; color: var(--shein-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--shein-muted); }
.crumbs a:hover { color: #000; }
.listing-desc { font-size: 14px; color: var(--shein-muted); margin: 0 0 8px; }
@media (max-width: 991px) {
    .product-page { padding-bottom: 96px; }
}
.listing-head, .listing-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.listing-tools { font-size: 13px; color: var(--shein-muted); }
.listing-tools select { width: auto; min-width: 140px; }
.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 14px 0 16px;
    padding-bottom: 4px;
}
.filter-chip {
    border: 1px solid var(--shein-border);
    background: #fff;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}
.filter-chip.active { background: #000; color: #fff; border-color: #000; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pager button, .pager span {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--shein-border);
    background: #fff;
    font-size: 13px;
}
.pager .on { background: #000; color: #fff; border-color: #000; }

.gallery-main {
    aspect-ratio: 3/4;
    background: var(--shein-bg);
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 8px;
}
.gallery-thumbs img, .gallery-thumbs button {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border: 1px solid transparent;
    padding: 0;
    background: var(--shein-bg);
    flex: 0 0 auto;
}
.gallery-thumbs .on { border-color: #000; }

.product-info .cat { font-size: 12px; color: var(--shein-muted); text-transform: uppercase; letter-spacing: .08em; }
.product-info h1 { font-size: 1.35rem; font-weight: 600; margin: 8px 0 12px; }
.product-info .price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.product-info .price { font-size: 1.45rem; font-weight: 700; }
.product-info .compare { color: var(--shein-muted); text-decoration: line-through; }
.product-info .off { color: var(--shein-sale); font-weight: 700; }
.attrs { font-size: 13px; color: var(--shein-muted); margin: 8px 0 18px; }
.size-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.size-btn {
    min-width: 48px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--shein-border);
    background: #fff;
    font-size: 13px;
}
.size-btn.on { border-color: #000; background: #000; color: #fff; }
.size-btn:disabled { opacity: .35; text-decoration: line-through; }
.desc { font-size: 14px; line-height: 1.65; white-space: pre-wrap; margin: 20px 0; }
.btn-whatsapp {
    background: var(--shein-whats);
    color: #fff;
    font-weight: 600;
    border: 0;
    height: 48px;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.related h2 {
    font-family: Syne, sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-h) + var(--safe-bottom));
    z-index: 1025;
    background: #fff;
    border-top: 1px solid var(--shein-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
}
.buybar .btn { min-width: 140px; height: 44px; }
.buybar small { display: block; color: var(--shein-muted); text-decoration: line-through; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--shein-border);
}
.cart-item img { width: 92px; height: 122px; object-fit: cover; background: var(--shein-bg); }
.cart-item h3 { font-size: 14px; margin: 0 0 6px; }
.cart-item .muted { font-size: 12px; color: var(--shein-muted); }
.qty {
    display: inline-flex;
    border: 1px solid var(--shein-border);
    margin-top: 8px;
}
.qty button {
    width: 32px;
    height: 32px;
    border: 0;
    background: #fff;
}
.qty span { min-width: 28px; text-align: center; line-height: 32px; font-size: 13px; }
.cart-summary {
    background: var(--shein-bg);
    padding: 20px;
}
.cart-summary h2 { font-size: 1rem; text-transform: uppercase; margin-bottom: 16px; }
.coupon-box { display: flex; gap: 0; margin-bottom: 8px; }
.coupon-box input { border-radius: 0; }
.coupon-msg { font-size: 12px; min-height: 18px; }
.coupon-msg.ok { color: #0a7a32; }
.coupon-msg.err { color: var(--shein-sale); }
.sum-line { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.sum-line.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--shein-border); padding-top: 12px; margin-top: 12px; }
.hint { font-size: 12px; color: var(--shein-muted); margin: 12px 0; }
.empty-cart { text-align: center; padding: 40px 10px; color: var(--shein-muted); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
    position: relative;
    aspect-ratio: 1 / 1.15;
    background: #111;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.cat-card span { position: relative; font-family: Syne, sans-serif; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.about-page .lead { font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 16px 0; }
.about-page { padding-bottom: 80px; }

.store-footer {
    background: #111;
    color: #cfcfcf;
    padding: 40px 0 28px;
    margin-top: 24px;
    font-size: 13px;
}
.store-footer .brand { color: #fff; }
.store-footer h6 {
    color: #fff;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.store-footer a, .store-footer .footer-text { display: block; color: #cfcfcf; margin-bottom: 6px; }
.store-footer a:hover { color: #fff; }
.adm-link { opacity: .55; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 24px; padding-top: 16px; font-size: 12px; color: #888; }

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    height: calc(var(--bottom-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    border-top: 1px solid var(--shein-border);
    display: flex;
}
.bottom-nav a, .bottom-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: #888;
    position: relative;
}
.bottom-nav i { font-size: 1.2rem; line-height: 1; }
.bottom-nav .active { color: #000; font-weight: 600; }
.bottom-nav .cart-badge { top: -4px; right: -10px; }

.toast-wrap {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 360px);
}
.toast-msg {
    background: #111;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    text-align: center;
}

#menuDrawer .offcanvas-body a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--shein-border);
    font-weight: 500;
}

@media (min-width: 992px) {
    .product-page { padding-top: 28px; }
    .buybar { display: none !important; }
}
