.fmwp {
    --fmwp-primary: #5b2dea;
    --fmwp-primary-dark: #4320b5;
    --fmwp-ink: #111827;
    --fmwp-muted: #64748b;
    --fmwp-line: #e5e7eb;
    --fmwp-soft: #f7f7fb;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: var(--fmwp-ink);
    font-family: inherit;
}

.fmwp *,
.fmwp *::before,
.fmwp *::after {
    box-sizing: border-box;
}

.fmwp a {
    text-decoration: none;
}

.fmwp-persistent-cart {
    position: fixed;
    right: 24px;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 10px 13px 10px 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: #171127;
    color: #fff !important;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 16px 42px rgba(17, 24, 39, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fmwp-persistent-cart:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(17, 24, 39, .34);
}

.fmwp-persistent-cart[hidden] {
    display: none !important;
}

.fmwp-persistent-cart svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fmwp-persistent-cart svg circle {
    fill: currentColor;
    stroke: none;
}

.fmwp-persistent-cart strong {
    display: inline-flex;
    min-width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #7041f2;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.fmwp-hero {
    padding: clamp(52px, 7vw, 92px) 20px 36px;
    text-align: center;
}

.fmwp-eyebrow {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid #ddd5ff;
    border-radius: 999px;
    background: #f4f1ff;
    color: var(--fmwp-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fmwp-hero h1 {
    max-width: 780px;
    margin: 19px auto 13px;
    color: #080b15;
    font-size: clamp(38px, 5.2vw, 68px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.fmwp-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--fmwp-muted);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.65;
}

.fmwp-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.65fr) repeat(3, minmax(150px, .75fr)) auto;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--fmwp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.fmwp-filters input,
.fmwp-filters select,
.fmwp-filters button {
    width: 100%;
    height: 46px;
    margin: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
}

.fmwp-filters input,
.fmwp-filters select {
    border: 1px solid #dfe3ea;
    background: #fff;
    color: #1f2937;
}

.fmwp-filters input {
    padding: 0 15px;
}

.fmwp-filters select {
    padding: 0 32px 0 12px;
}

.fmwp-filters button {
    padding: 0 20px;
    border: 0;
    background: linear-gradient(135deg, #6d3af2, #4a21c6);
    color: #fff;
    cursor: pointer;
    font-weight: 750;
}

.fmwp-results-line {
    display: flex;
    justify-content: space-between;
    padding: 24px 2px 15px;
    color: var(--fmwp-muted);
    font-size: 14px;
    font-weight: 650;
}

.fmwp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fmwp-card {
    overflow: hidden;
    border: 1px solid var(--fmwp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fmwp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .1);
}

.fmwp-card-image {
    position: relative;
    display: flex;
    min-height: 270px;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #eef0f5;
}

.fmwp-card-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: top;
}

.fmwp-platform {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.fmwp-card-body {
    padding: 20px;
}

.fmwp-card-topline,
.fmwp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fmwp-creator {
    overflow: hidden;
    color: var(--fmwp-muted);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fmwp-verified {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--fmwp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.fmwp-rating {
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.fmwp-rating span {
    color: #f59e0b;
}

.fmwp-rating.fmwp-new {
    color: var(--fmwp-muted);
}

.fmwp-card h2 {
    margin: 12px 0 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.fmwp-card h2 a {
    color: var(--fmwp-ink);
}

.fmwp-card p {
    min-height: 47px;
    margin: 0 0 18px;
    color: var(--fmwp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fmwp-card-footer {
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.fmwp-card-footer strong {
    font-size: 19px;
}

.fmwp-card-footer a {
    color: var(--fmwp-primary);
    font-size: 13px;
    font-weight: 800;
}

.fmwp-image-placeholder {
    display: flex;
    width: 100%;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, #f5f3ff, #e9e5ff);
    color: var(--fmwp-primary);
    font-weight: 800;
}

.fmwp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px 0 72px;
    color: var(--fmwp-muted);
    font-size: 14px;
}

.fmwp-pagination a {
    padding: 10px 15px;
    border: 1px solid var(--fmwp-line);
    border-radius: 9px;
    background: #fff;
    color: var(--fmwp-ink);
    font-weight: 750;
}

.fmwp-empty,
.fmwp-error {
    margin: 30px auto 70px;
    padding: 52px 24px;
    border: 1px solid var(--fmwp-line);
    border-radius: 18px;
    background: var(--fmwp-soft);
    text-align: center;
}

.fmwp-empty h2,
.fmwp-error h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.fmwp-back {
    display: inline-flex;
    margin: 38px 0 22px;
    color: var(--fmwp-muted);
    font-size: 14px;
    font-weight: 750;
}

.fmwp-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: 36px;
    align-items: start;
}

.fmwp-gallery,
.fmwp-purchase-card,
.fmwp-description {
    border: 1px solid var(--fmwp-line);
    border-radius: 20px;
    background: #fff;
}

.fmwp-gallery {
    padding: 14px;
}

.fmwp-main-image {
    display: flex;
    min-height: 480px;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    background: #f1f2f6;
}

.fmwp-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 780px;
    object-fit: contain;
    object-position: top center;
}

.fmwp-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    padding-top: 11px;
}

.fmwp-thumbnails button {
    overflow: hidden;
    height: 78px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #eef0f4;
    cursor: pointer;
}

.fmwp-thumbnails button.is-active {
    border-color: var(--fmwp-primary);
}

.fmwp-thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.fmwp-purchase-card {
    position: sticky;
    top: 24px;
    padding: 28px;
}

.fmwp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 17px;
}

.fmwp-badges span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1edff;
    color: var(--fmwp-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fmwp-purchase-card h1 {
    margin: 0 0 9px;
    color: #080b15;
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.fmwp-seller {
    margin-bottom: 10px;
    color: var(--fmwp-muted);
    font-size: 14px;
}

.fmwp-detail-price {
    margin: 26px 0 13px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.fmwp-short-description {
    margin: 0 0 22px;
    color: var(--fmwp-muted);
    font-size: 15px;
    line-height: 1.65;
}

.fmwp-buy-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #6d3af2, #4a21c6);
    color: #fff !important;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(91, 45, 234, .24);
}

.fmwp-cart-actions {
    display: grid;
    gap: 10px;
}

.fmwp-buy-button.is-added {
    background: #16865c;
    box-shadow: 0 12px 28px rgba(22, 134, 92, .2);
}

.fmwp-view-cart {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dbe8;
    border-radius: 11px;
    background: #fff;
    color: #21184c !important;
    font-size: 15px;
    font-weight: 850;
}

.fmwp-view-cart:hover {
    border-color: #6d3af2;
    color: #4a21c6 !important;
}

.fmwp-view-cart[hidden],
.fmwp-cart-status[hidden] {
    display: none !important;
}

.fmwp-cart-status {
    margin: 0;
    color: #16865c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.fmwp-cart-status.is-error {
    color: #b42318;
}

.fmwp-checkout-note {
    margin: 11px 0 22px;
    color: var(--fmwp-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.fmwp-template-facts {
    margin: 0;
    border-top: 1px solid var(--fmwp-line);
}

.fmwp-template-facts div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fmwp-line);
}

.fmwp-template-facts dt {
    color: var(--fmwp-muted);
}

.fmwp-template-facts dd {
    margin: 0;
    font-weight: 750;
}

.fmwp-description {
    margin: 34px 0 78px;
    padding: clamp(25px, 4vw, 42px);
}

.fmwp-description h2 {
    margin: 0 0 18px;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.fmwp-description p {
    max-width: 820px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .fmwp-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmwp-search {
        grid-column: 1 / -1;
    }

    .fmwp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmwp-detail-grid {
        grid-template-columns: 1fr;
    }

    .fmwp-purchase-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .fmwp {
        width: min(100% - 22px, 1180px);
    }

    .fmwp-hero {
        padding: 42px 6px 28px;
    }

    .fmwp-filters,
    .fmwp-grid {
        grid-template-columns: 1fr;
    }

    .fmwp-card-image {
        min-height: 220px;
    }

    .fmwp-main-image {
        min-height: 320px;
    }

    .fmwp-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fmwp-purchase-card {
        padding: 22px;
    }

    .fmwp-persistent-cart {
        right: 16px;
        bottom: calc(108px + env(safe-area-inset-bottom, 0px));
        min-height: 48px;
        padding: 9px 11px 9px 14px;
    }
}
