.finoon-xd-home {
    --fxd-ink: #141417;
    --fxd-muted: #6b6f76;
    --fxd-line: rgba(20, 20, 23, .1);
    --fxd-soft: #f5f6f8;
    --fxd-card: #fff;
    --fxd-accent: #5d35b0;
    --fxd-accent-2: #f1611e;
    --fxd-warm: #ffa827;
    color: var(--fxd-ink);
    font-family: Montserrat, Arial, sans-serif;
}

.finoon-xd-home *,
.finoon-xd-home *::before,
.finoon-xd-home *::after {
    box-sizing: border-box;
}

.fxd-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.fxd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    gap: 28px;
    align-items: stretch;
    min-height: 520px;
}

.fxd-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border: 1px solid var(--fxd-line);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 64px);
    background:
        linear-gradient(135deg, rgba(93, 53, 176, .08), transparent 42%),
        linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
}

.fxd-eyebrow {
    width: fit-content;
    margin-bottom: 18px;
    border: 1px solid rgba(93, 53, 176, .22);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--fxd-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fxd-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--fxd-ink);
    font-size: clamp(38px, 5.2vw, 72px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: 0;
}

.fxd-hero-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--fxd-muted);
    font-size: 17px;
    line-height: 1.72;
}

.fxd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.fxd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 8px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fxd-btn:hover {
    transform: translateY(-1px);
}

.fxd-btn-primary {
    background: var(--fxd-accent);
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(93, 53, 176, .24);
}

.fxd-btn-secondary {
    border: 1px solid var(--fxd-line);
    background: #fff;
    color: var(--fxd-ink) !important;
}

.fxd-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
}

.fxd-stats span {
    min-height: 54px;
    border: 1px solid var(--fxd-line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, .72);
    color: #292a2d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.fxd-hero-media {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 8px;
    background: #111;
}

.fxd-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transform: scale(1.01);
}

.fxd-media-chip {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    border-radius: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
    color: var(--fxd-ink);
    font-size: 13px;
    font-weight: 900;
}

.fxd-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.fxd-category-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 13px;
    align-items: center;
    min-height: 118px;
    border: 1px solid var(--fxd-line);
    border-radius: 8px;
    padding: 18px;
    background: var(--fxd-card);
    color: var(--fxd-ink) !important;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fxd-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 53, 176, .28);
    box-shadow: 0 18px 36px rgba(20, 20, 23, .08);
}

.fxd-category-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f1ecff;
    color: var(--fxd-accent);
    font-size: 11px;
    font-weight: 900;
}

.fxd-category-card strong {
    font-size: 16px;
    line-height: 1.15;
}

.fxd-category-card small {
    color: var(--fxd-muted);
    font-size: 12px;
    line-height: 1.35;
}

.fxd-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 46px;
    margin-bottom: 16px;
}

.fxd-products-head h2 {
    margin: 0;
    color: var(--fxd-ink);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: 0;
}

.fxd-products-head a {
    color: var(--fxd-accent) !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

.fxd-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fxd-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--fxd-line);
    border-radius: 8px;
    padding: 12px;
    background: var(--fxd-card);
}

.fxd-sale {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 9px;
    background: var(--fxd-accent-2);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.fxd-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--fxd-soft);
    overflow: hidden;
}

.fxd-product-image img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform .18s ease;
}

.fxd-product-card:hover .fxd-product-image img {
    transform: scale(1.04);
}

.fxd-product-card h3 {
    margin: 14px 2px 6px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.fxd-product-card h3 a {
    color: var(--fxd-ink) !important;
    text-decoration: none !important;
}

.fxd-price {
    margin: auto 2px 12px;
    color: var(--fxd-accent);
    font-size: 15px;
    font-weight: 900;
}

.fxd-price del {
    display: block;
    color: #9ca0a8;
    font-size: 12px;
    font-weight: 700;
}

.fxd-price ins {
    text-decoration: none;
}

.fxd-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    background: #17171a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .fxd-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fxd-hero-media img {
        min-height: 420px;
    }

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

@media (max-width: 640px) {
    .fxd-shell {
        width: min(100% - 22px, 420px);
        padding: 12px 0 36px;
    }

    .fxd-hero {
        gap: 12px;
    }

    .fxd-hero-copy {
        padding: 24px 18px;
    }

    .fxd-hero h1 {
        font-size: 34px;
        line-height: 1;
    }

    .fxd-hero-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .fxd-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fxd-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 22px;
    }

    .fxd-hero-media {
        min-height: 320px;
    }

    .fxd-hero-media img {
        min-height: 320px;
    }

    .fxd-categories {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .fxd-category-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .fxd-products-head {
        margin-top: 32px;
    }

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

    .fxd-product-card {
        padding: 9px;
    }

    .fxd-product-card h3 {
        min-height: 56px;
        font-size: 12px;
    }

    .fxd-price {
        font-size: 13px;
    }
}

/* Finoon XD widgets: category strip and latest product grid */
.finoon-shop-cats,
.finoon-latest-products {
    width: min(1253px, calc(100% - 96px));
    margin: 0 auto;
    font-family: Montserrat, Arial, sans-serif;
    color: #202127;
}

.finoon-cats-title,
.finoon-latest-head h2 {
    margin: 0;
    color: #0f1013;
    font-size: 29px;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.finoon-cats-title {
    margin-bottom: 27px;
}

.finoon-cats-title .mobile-title {
    display: none;
}

.finoon-cats-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 17px;
}

.finoon-cat-item {
    display: block;
    min-width: 0;
    color: #22242a !important;
    text-align: center;
    text-decoration: none !important;
}

.finoon-cat-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
}

.finoon-cat-image img {
    display: block;
    width: 81%;
    height: 81%;
    object-fit: contain;
}

.finoon-cat-item strong {
    display: block;
    margin-top: 14px;
    color: #292b30;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.05;
}

.finoon-cat-item small {
    display: block;
    margin-top: 4px;
    color: #8b8b8b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
}

.finoon-cats-more {
    display: none;
}

.finoon-latest-products {
    margin-top: 37px;
}

.finoon-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}

.finoon-latest-head a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ababab !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
}

.finoon-latest-head a span {
    color: #bdbdbd;
    font-size: 18px;
    line-height: 1;
}

.finoon-latest-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}

.finoon-product-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
    padding: 33px 18px 24px;
    text-align: center;
}

.finoon-product-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.finoon-product-badge {
    position: absolute;
    z-index: 5;
    top: 5px;
    left: 4px;
    border-radius: 4px;
    background: #6946bf;
    color: #fff;
    padding: 4px 8px 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.finoon-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / .9;
    margin: 0 auto 7px;
}

.finoon-product-image img {
    display: block;
    width: 95%;
    height: 95%;
    object-fit: contain;
}

.finoon-product-dots {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 12px;
}

.finoon-product-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #000;
}

.finoon-product-dots span:nth-child(2) {
    background: #ed743f;
}

.finoon-product-dots span:nth-child(3) {
    background: #2633a8;
}

.finoon-product-dots span:nth-child(4) {
    background: #b8b8b8;
}

.finoon-product-tile h3 {
    margin: 0 0 8px;
    color: #727272;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0;
}

.finoon-product-price {
    color: #0a0a0a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.08;
}

.finoon-product-price del {
    display: block;
    margin-top: 9px;
    color: #797979;
    font-size: 16px;
    font-weight: 500;
}

.finoon-product-price ins {
    color: #050505;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .finoon-shop-cats,
    .finoon-latest-products {
        width: min(100% - 34px, 740px);
    }

    .finoon-cats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 26px 16px;
    }

    .finoon-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }
}

@media (max-width: 640px) {
    .finoon-shop-cats,
    .finoon-latest-products {
        width: min(100% - 30px, 387px);
    }

    .finoon-cats-title,
    .finoon-latest-head h2 {
        font-size: 15px;
        line-height: 1.08;
    }

    .finoon-cats-title {
        margin-bottom: 12px;
    }

    .finoon-cats-title .desktop-title {
        display: none;
    }

    .finoon-cats-title .mobile-title {
        display: inline;
    }

    .finoon-cats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .finoon-cat-image {
        border-radius: 7px;
    }

    .finoon-cat-image img {
        width: 79%;
        height: 79%;
    }

    .finoon-cat-item strong {
        margin-top: 10px;
        font-size: 14px;
        line-height: .98;
    }

    .finoon-cat-item small {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.02;
    }

    .finoon-cats-more {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        margin-top: 8px;
        border-radius: 999px;
        background: #dedede;
        color: #000 !important;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none !important;
    }

    .finoon-latest-products {
        margin-top: 31px;
    }

    .finoon-latest-head {
        margin-bottom: 9px;
    }

    .finoon-latest-head a {
        gap: 5px;
        font-size: 11px;
    }

    .finoon-latest-head a span {
        font-size: 14px;
    }

    .finoon-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .finoon-product-tile {
        border-radius: 5px;
        padding: 20px 7px 9px;
    }

    .finoon-product-badge {
        top: 5px;
        left: 4px;
        border-radius: 3px;
        padding: 2px 4px;
        font-size: 6px;
    }

    .finoon-product-image {
        aspect-ratio: 1 / .92;
        margin-bottom: 2px;
    }

    .finoon-product-dots {
        gap: 5px;
        margin: 0 0 4px;
    }

    .finoon-product-dots span {
        width: 5px;
        height: 5px;
    }

    .finoon-product-tile h3 {
        margin-bottom: 4px;
        font-size: 7px;
    }

    .finoon-product-price {
        font-size: 12px;
    }

    .finoon-product-price del {
        margin-top: 3px;
        font-size: 8px;
    }
}
