/*
 * Bangla text support (Bug 108).
 *
 * 1. 'FS Bangla' — Hind Siliguri, self-hosted, Bengali block ONLY (unicode-range).
 *    It is listed first in the storefront font stacks (frontend/builder/master), so
 *    Bangla always renders in the same font on every device, and Latin text falls
 *    through to the chosen appearance font.
 *
 * 2. .fs-product-name — product names in every product-card variant. Bangla vowel
 *    signs (ি ী ু ূ ৃ) and conjuncts reach above / below the Latin line box; the old
 *    16px line-height + overflow:hidden clipped them, and a 1-line clamp hid most of
 *    the name. Names now get a taller line box, a little vertical padding and up to
 *    2 lines, with a fixed 2-line height so cards in a row stay aligned.
 */

@font-face {
    font-family: 'FS Bangla';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/hind-siliguri/hind-siliguri-bengali-400.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'FS Bangla';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/hind-siliguri/hind-siliguri-bengali-500.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'FS Bangla';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/hind-siliguri/hind-siliguri-bengali-600.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+25CC, U+A8F1;
}

@font-face {
    font-family: 'FS Bangla';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/hind-siliguri/hind-siliguri-bengali-700.woff2') format('woff2');
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+25CC, U+A8F1;
}

/* Product names on cards: up to 2 lines, never clipping Bangla marks. */
.fs-product-name {
    --fs-name-lh: 1.55;

    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: var(--fs-name-lh) !important;
    padding-block: .12em !important;
    /* Reserve both lines so a 1-line name keeps prices and buttons aligned. */
    min-height: calc(2em * var(--fs-name-lh) + .24em);
}

.fs-product-name a {
    display: inline;
    line-height: inherit !important;
    white-space: normal !important;
}
