/* Vendor store-এর home পেজ */

.sfh {
    --sfh-ink: #111627;
    --sfh-text: #4a5268;
    --sfh-muted: #6f778c;
    --sfh-line: #e7e9f1;
    --sfh-soft: #f6f7fb;
    --sfh-brand: var(--ssx-green, #635bff);
    --sfh-brand-dark: var(--ssx-green-dark, #5145e5);
    --sfh-sale: #d92d3a;

    background: #fff;
    color: var(--sfh-text);
    overflow-x: clip;
}

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

.sfh h1,
.sfh h2,
.sfh h3,
.sfh p,
.sfh ul {
    margin: 0;
    padding: 0;
}

.sfh ul {
    list-style: none;
}

.sfh-shell {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Slider */

.sfh-hero .carousel-item {
    background: var(--sfh-soft);
}

.sfh-slide {
    position: relative;
    height: clamp(220px, 34vw, 460px);
    overflow: hidden;
}

.sfh-slide::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: var(--sfh-slide) center / cover no-repeat;
    filter: blur(28px) brightness(0.72);
}

.sfh-slide a {
    display: contents;
}

.sfh-slide img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfh-dots {
    margin-bottom: 10px;
}

.sfh-dots [data-bs-target] {
    width: 22px;
    height: 4px;
    margin-inline: 3px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    opacity: 0.55;
}

.sfh-dots .active {
    opacity: 1;
}

.sfh-arrow {
    top: 50%;
    bottom: auto;
    width: 42px;
    height: 42px;
    margin-inline: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sfh-ink);
    font-size: 24px;
    opacity: 1;
    transform: translateY(-50%);
}

.sfh-arrow:hover,
.sfh-arrow:focus {
    background: #fff;
    color: var(--sfh-ink);
    opacity: 1;
}

.sfh-banner {
    height: clamp(120px, 20vw, 240px);
    background: var(--sfh-banner, linear-gradient(115deg, var(--sfh-brand-dark), var(--sfh-brand))) center / cover no-repeat;
}

/* Store-এর পরিচয় */

.sfh-store {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-block: 22px;
}

.sfh-store-logo {
    position: relative;
    display: grid;
    flex: none;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--sfh-line);
    border-radius: 18px;
    background: #fff;
    color: var(--sfh-brand);
    font-size: 30px;
    font-weight: 700;
}

.sfh-store-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.sfh-store-info {
    flex: 1;
    min-width: 0;
}

.sfh-store-info h1 {
    color: var(--sfh-ink);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.sfh-store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 4px !important;
    color: var(--sfh-muted);
    font-size: 14px;
}

.sfh-store-meta .ri-star-fill {
    color: #e8a50c;
}

.sfh-store-info p {
    display: -webkit-box;
    max-width: 680px;
    margin-top: 6px;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sfh-trust {
    display: flex;
    flex: none;
    gap: 8px;
}

.sfh-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--sfh-line);
    border-radius: 10px;
    color: var(--sfh-ink);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}

.sfh-trust i {
    color: var(--sfh-brand);
    font-size: 17px;
}

/* Category */

.sfh-cats {
    display: flex;
    gap: 6px;
    padding-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sfh-cats::-webkit-scrollbar {
    display: none;
}

.sfh-cat {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 92px;
    padding: 6px 4px;
    border-radius: 12px;
    color: var(--sfh-ink);
    text-align: center;
    text-decoration: none;
}

.sfh-cat:hover {
    background: var(--sfh-soft);
    color: var(--sfh-brand-dark);
}

.sfh-cat-image {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--sfh-soft);
    color: var(--sfh-brand);
    font-size: 24px;
    font-weight: 600;
}

.sfh-cat-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfh-cat--all .sfh-cat-image {
    background: var(--sfh-brand);
    color: #fff;
}

.sfh-cat-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Section */

.sfh-section {
    padding-block: 32px;
}

.sfh-section--offers {
    background: var(--sfh-soft);
}

.sfh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sfh-section-head h2 {
    color: var(--sfh-ink);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
}

.sfh-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sfh-brand-dark);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

/* Product grid ও ছাড়ের সারি */

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

.sfh-rail {
    display: grid;
    grid-auto-columns: minmax(210px, calc((100% - 64px) / 5));
    grid-auto-flow: column;
    gap: 16px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.sfh-rail-item {
    min-width: 0;
    scroll-snap-align: start;
}

/* Product card: এই পেজের জন্য পরিষ্কার রূপ */

.sfh .ssx-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sfh-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    transform: none;
    transition: border-color 0.15s ease;
}

.sfh .ssx-product-card:hover {
    border-color: #c9cde0;
    box-shadow: none;
    transform: none;
}

.sfh .ssx-product-media {
    position: relative;
    aspect-ratio: 1;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--sfh-soft);
}

.sfh .ssx-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sfh .ssx-product-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transform: none;
}

.sfh .ssx-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    height: auto;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--sfh-sale);
    box-shadow: none;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.sfh .ssx-product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 1;
    transform: none;
}

.sfh .ssx-product-action {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 22, 39, 0.16);
    color: var(--sfh-ink);
    font-size: 17px;
}

/* একই পেজ product পেজেও আছে, তাই এখানে চোখ বোতাম লাগে না */
.sfh .ssx-product-action:not(.addToWishlistBtn) {
    display: none;
}

.sfh .ssx-product-action.is-wishlisted {
    color: var(--sfh-sale);
}

.sfh .ssx-product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.sfh .ssx-product-category {
    display: none;
}

.sfh .ssx-product-name {
    min-height: 0;
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
}

.sfh .ssx-product-name a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sfh-ink);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sfh .ssx-product-rating {
    margin: 0;
    font-size: 12.5px;
}

.sfh .ssx-product-price-area {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 7px;
    margin: auto 0 0;
    padding-top: 2px;
}

.sfh .ssx-product-price {
    color: var(--sfh-ink);
    font-size: 17px;
    font-weight: 700;
}

.sfh .ssx-product-old-price {
    color: var(--sfh-muted);
    font-size: 13px;
}

.sfh .ssx-product-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    margin: 4px 0 0;
    padding: 8px;
    border: 1px solid var(--sfh-brand);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: var(--sfh-brand-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transform: none;
}

.sfh .ssx-product-cart:hover {
    background: var(--sfh-brand);
    color: #fff;
    transform: none;
}

.sfh .ssx-product-cart.is-disabled,
.sfh .ssx-product-cart.is-disabled:hover {
    border-color: var(--sfh-line);
    background: var(--sfh-soft);
    color: var(--sfh-muted);
}

/* আরও দেখুন ও খালি অবস্থা */

.sfh-more {
    margin-top: 28px;
    text-align: center;
}

.sfh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 24px;
    border-radius: 11px;
    background: var(--sfh-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.sfh-btn:hover {
    background: var(--sfh-brand-dark);
    color: #fff;
}

.sfh-empty {
    padding: 56px 16px;
    border: 1px dashed var(--sfh-line);
    border-radius: 16px;
    text-align: center;
}

.sfh-empty i {
    color: var(--sfh-muted);
    font-size: 38px;
}

.sfh-empty h2 {
    margin-top: 10px;
    color: var(--sfh-ink);
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .sfh-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sfh-store {
        flex-wrap: wrap;
    }

    .sfh-trust {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .sfh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sfh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sfh-rail {
        grid-auto-columns: 46%;
        gap: 10px;
    }

    .sfh-slide {
        height: 56vw;
    }

    .sfh-arrow {
        display: none;
    }

    .sfh-store {
        gap: 12px;
        padding-block: 16px;
    }

    .sfh-store-logo {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .sfh-store-info {
        flex-basis: calc(100% - 72px);
    }

    .sfh-trust {
        gap: 6px;
    }

    .sfh-trust li {
        padding: 6px 10px;
        font-size: 13px;
    }

    .sfh-cats {
        padding-bottom: 16px;
    }

    .sfh-section {
        padding-block: 24px;
    }

    .sfh .ssx-product-details {
        padding: 10px;
    }

    .sfh .ssx-product-name {
        font-size: 14px;
    }

    .sfh .ssx-product-price {
        font-size: 16px;
    }
}
