@font-face {
    font-family: 'Kalpurush';
    src: url('/fonts/kalpurush.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --text: #111111;
    --text-soft: #5e5e5e;
    --line: #e6e6e6;
    --dark: #0d0d0d;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
    --font-primary: 'Kalpurush', system-ui, -apple-system, Times New Roman, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kalpurush', system-ui, -apple-system, Times New Roman, serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}



img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--dark);
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    font-weight: 700;
    transition: 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

button,
[type='button'],
[type='submit'] {
    cursor: pointer;
}

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

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

.btn-light {
    background: #fff;
    color: var(--dark);
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.site-nav.scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-logo {
    height: 48px;
    width: auto;
    background: transparent;
    padding: 0;
    border: 0;
    -o-object-fit: contain;
       object-fit: contain;
}

.brand-text {
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2.3vw, 1.6rem);
    font-weight: 500;
    color: var(--text-soft);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    font-weight: 700;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #111;
}

.hero {
    background: linear-gradient(145deg, #0d0d0d 0%, #1b1b1b 100%);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    min-height: min(90vh, 760px);
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.hero-media {
    order: 1;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-media-image {
    width: 100%;
    height: clamp(220px, 42vw, 500px);
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center;
       object-position: center;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f1f1f1;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    max-width: 62ch;
    color: #d2d2d2;
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-content {
    order: 2;
}

.hero-card {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: floatY 5s ease-in-out infinite;
}

.hero-img {
    aspect-ratio: 4 / 5;
    border-radius: calc(var(--radius-lg) - 8px);
    background: repeating-linear-gradient(45deg, #fafafa, #fafafa 16px, #efefef 16px, #efefef 32px);
    border: 1px solid #ececec;
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    color: #252525;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #555;
    font-size: 0.93rem;
}

@media (min-width: 961px) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        order: 1;
    }

    .hero-media {
        order: 2;
    }
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    margin-bottom: 0.65rem;
    font-weight: 800;
}

.section-sub {
    color: var(--text-soft);
    margin-bottom: 2rem;
    max-width: 65ch;
}

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

.feature {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

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

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-chip {
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #111;
    color: #111;
}

.filter-chip.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.product.is-hidden {
    display: none;
}

.product.is-sold-out {
    opacity: 0.68;
}

.product.is-sold-out:hover {
    transform: none;
    box-shadow: none;
}

.product.is-sold-out .product-thumb img {
    filter: grayscale(1) brightness(0.78);
}

.product.is-sold-out:hover .product-thumb img {
    transform: none;
}

.product.is-sold-out .product-thumb::after {
    content: 'স্টক আউট';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(20, 20, 20, 0.35);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.is-sold-out-text {
    color: #8b8b8b;
    font-weight: 700;
}

.product .btn[disabled],
.product .btn[aria-disabled='true'] {
    background: #efefef;
    color: #7a7a7a;
    border-color: #d0d0d0;
    cursor: not-allowed;
}

.product-thumb {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #f9f9f9, #ececec);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    color: #2a2a2a;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.product:hover .product-thumb img {
    transform: scale(1.04);
}

.sale-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: #111;
    color: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.sold-out-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: #5f5f5f;
    color: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.product-body {
    padding: 1rem;
}

.product-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.product-body p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
}

.sale-old {
    color: #777;
    text-decoration: line-through;
    font-size: 0.92rem;
}

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

.coupon-card {
    border: 1px dashed #bcbcbc;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.coupon-card h3 {
    margin-bottom: 0.35rem;
}

.order-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.order-card,
.order-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.order-card {
    padding: 1.2rem;
    position: sticky;
    top: 96px;
}

.order-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.order-card ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.order-form {
    padding: clamp(1rem, 2.2vw, 1.5rem);
    width: min(100%, 760px);
    margin-inline: auto;
}

[data-fs-success] {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 1rem;
    z-index: 80;
}

[data-fs-success]:not([data-fs-active]) {
    display: none;
}

[data-fs-success][data-fs-active] {
    display: flex;
}

.order-success-popup {
    width: min(400px, 100%);
    background: #fff;
    color: #111;
    border-radius: 16px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
    padding: 1rem;
}

.order-success-popup h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.order-success-popup p {
    color: #4a4a4a;
    margin-bottom: 0.75rem;
}

.order-popup-info {
    border: 1px dashed #cfcfcf;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.order-popup-info h4 {
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.order-popup-info ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    color: #3e3e3e;
    font-size: 0.95rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.field {
    margin-bottom: 0.8rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #3f3f3f;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 104px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.total {
    margin: 0.8rem 0 1rem;
    padding: 0.8rem;
    border: 1px dashed #bcbcbc;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.coupon-message {
    margin-top: 0.45rem;
    font-size: 0.86rem;
}

.coupon-message.success {
    color: #1b5e20;
}

.coupon-message.error {
    color: #b71c1c;
}

.order-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.order-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.site-footer {
    background: #0d0d0d;
    color: #d8d8d8;
    padding: 2.4rem 0 1.2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.2rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.footer-links a {
    color: #ececec;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-brand-line {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-brand-logo {
    height: 44px;
    width: auto;
    background: transparent;
    padding: 0;
    border: 0;
    -o-object-fit: contain;
       object-fit: contain;
}

.footer-col-brand .muted {
    margin-top: 0.55rem;
    max-width: 38ch;
}

.footer-bottom {
    padding-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.dev-credit {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    display: inline-block;
    font-size: 0.95rem;
    color: #efefef;
}

.dev-credit a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: inherit;
    text-decoration: none;
}

.dev-credit a:hover {
    opacity: 0.9;
}

.dev-credit img {
    height: 24px;
    width: auto;
    border-radius: 6px;
    padding: 2px 6px;
}

.muted {
    color: var(--text-soft);
}

footer .muted a {
    color: #f0f0f0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer .muted a:hover {
    color: #ffffff;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none),
(pointer: coarse) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 960px) {

    .hero-grid,
    .order-wrap {
        grid-template-columns: 1fr;
    }

    .order-card {
        position: static;
    }

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

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

@media screen and (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .nav-wrap {
        min-height: auto;
        padding-block: 0.8rem;
    }

    .nav-wrap .btn {
        width: auto;
        padding: 0.62rem 1rem;
    }

    .brand-logo {
        height: 40px;
    }

    .footer-brand-logo {
        height: 40px;
    }

    .brand-text {
        display: none;
    }

    /* .features, */
    /* .collection-grid, */
    /* .field-grid, */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .dev-credit {
        justify-content: flex-start;
        font-size: 0.9rem;
    }

    .filter-row {
        margin-bottom: 0.8rem;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-sub {
        margin-bottom: 1.4rem;
    }
}

@media (max-width: 420px) {
    .container {
        width: 94%;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 9vw, 2.1rem);
    }

    .hero p {
        font-size: 0.92rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .section {
        padding: 2.4rem 0;
    }

    .product-body,
    .order-form,
    .order-card {
        padding: 0.9rem;
    }
}
