:root {
    --bt-ink: #271711;
    --bt-muted: #80685f;
    --bt-soft: #fff8eb;
    --bt-card: rgba(255, 255, 255, 0.78);
    --bt-rose: #ff5f86;
    --bt-berry: #d93662;
    --bt-orange: #ff9f2e;
    --bt-lemon: #ffe079;
    --bt-mint: #9be7ba;
    --bt-cocoa: #4d2618;
    --bt-line: rgba(77, 38, 24, 0.1);
    --bt-shadow: 0 18px 46px rgba(83, 40, 22, 0.12);
    --bt-shadow-soft: 0 10px 26px rgba(83, 40, 22, 0.08);
    --bt-radius-lg: 34px;
    --bt-radius-md: 22px;
    --bt-container: 1160px;
    --bt-font: "IRANYekanX", Tahoma, sans-serif;
    --bt-heading-font: "Mikhak", Tahoma, sans-serif;
    --bt-nav-font: "IRANYekanX", Tahoma, sans-serif;
    --bt-button-font: "IRANYekanX", Tahoma, sans-serif;
    --bt-product-font: "IRANYekanX", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--bt-ink);
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 224, 121, 0.55), transparent 18rem),
        radial-gradient(circle at 88% 14%, rgba(255, 95, 134, 0.22), transparent 22rem),
        linear-gradient(180deg, #fff4de 0%, #fffaf0 48%, #fff0d2 100%);
    font-family: var(--bt-font);
    font-size: 15px;
    line-height: 1.9;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.rtl {
    direction: rtl;
}

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

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

.container {
    width: min(100% - 32px, var(--bt-container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--bt-line);
    box-shadow: 0 8px 24px rgba(77, 38, 24, 0.05);
}

.site-header__main {
    display: flex;
    align-items: stretch;
    min-height: 76px;
}

.site-header__content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    min-width: 0;
    background-color: #fff;
    background-image:
        radial-gradient(circle at 12% 28%, rgba(255, 224, 121, 0.22) 0 6px, transparent 7px),
        radial-gradient(circle at 78% 62%, rgba(255, 95, 134, 0.14) 0 7px, transparent 8px),
        radial-gradient(circle at 42% 18%, rgba(155, 231, 186, 0.18) 0 5px, transparent 6px),
        radial-gradient(circle at 88% 24%, rgba(255, 159, 46, 0.12) 0 6px, transparent 7px);
    background-size: 180px 120px;
}

.site-header__actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(18px, 3vw, 34px) 0 clamp(42px, 5vw, 72px);
    color: #fff;
    background: linear-gradient(135deg, #c42d58 0%, var(--bt-berry) 52%, #b82f54 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--bt-cocoa);
    font-size: 1.05rem;
    font-weight: 900;
    font-family: var(--bt-nav-font);
    white-space: nowrap;
}

.site-brand a {
    display: grid;
    line-height: 1.4;
}

.site-brand small {
    color: var(--bt-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.site-brand::before {
    width: 36px;
    height: 36px;
    content: "";
    background: conic-gradient(from 160deg, var(--bt-rose), var(--bt-lemon), var(--bt-mint), var(--bt-rose));
    border: 3px solid #fff;
    border-radius: 48% 52% 45% 55%;
    box-shadow: 0 8px 18px rgba(217, 54, 98, 0.18);
}

.site-brand:has(.custom-logo-link)::before {
    display: none;
}

.site-brand img {
    max-width: 150px;
    max-height: 54px;
    object-fit: contain;
}

.site-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--bt-cocoa);
    background: #fff;
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    cursor: pointer;
}

.site-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav__menu,
.site-footer__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__menu {
    justify-content: center;
    flex-wrap: wrap;
}

.site-nav__menu a {
    display: inline-flex;
    padding: 10px 14px;
    color: var(--bt-cocoa);
    font-size: 0.92rem;
    font-weight: 800;
    font-family: var(--bt-nav-font);
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
    color: var(--bt-berry);
    background: rgba(217, 54, 98, 0.08);
}

.site-actions__cart,
.site-actions__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.86rem;
    font-weight: 800;
    font-family: var(--bt-nav-font);
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-actions__cart {
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
}

.site-actions__cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-actions__account {
    color: var(--bt-cocoa);
    background: #fff;
    border: 1.5px solid #fff;
    box-shadow: 0 10px 24px rgba(39, 23, 17, 0.12);
}

.site-actions__account:hover {
    background: #fff8eb;
}

.site-actions__cart svg,
.site-actions__account svg {
    flex: 0 0 auto;
}

.bt-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 6vw, 82px) 0 34px;
}

.bt-hero::before,
.bt-hero::after {
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 48px;
    content: "";
    border-radius: 999px;
    transform: rotate(-24deg);
}

.bt-hero::before {
    top: 22%;
    right: -54px;
    background: rgba(155, 231, 186, 0.58);
}

.bt-hero::after {
    bottom: 16%;
    left: -54px;
    background: rgba(255, 95, 134, 0.35);
}

.bt-hero__grid,
.bt-promo,
.bt-story {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.bt-hero__content h1,
.bt-promo h2,
.bt-section__head h2,
.bt-story h2,
.bt-cta h2 {
    margin: 0;
    color: var(--bt-ink);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.35;
    font-family: var(--bt-heading-font);
}

.bt-hero__content h1 {
    max-width: 610px;
    font-size: clamp(2.15rem, 5vw, 4.6rem);
}

.bt-hero__content p:not(.bt-kicker) {
    max-width: 570px;
    margin: 16px 0 0;
    color: var(--bt-muted);
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

.bt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--bt-berry);
    font-size: 0.82rem;
    font-weight: 900;
}

.bt-kicker::before {
    width: 30px;
    height: 8px;
    content: "";
    background: var(--bt-lemon);
    border: 2px solid rgba(77, 38, 24, 0.1);
    border-radius: 999px;
}

.bt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.bt-button,
.button,
.add_to_cart_button,
.product_type_simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 900;
    font-family: var(--bt-button-font);
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.bt-button:hover,
.button:hover,
.add_to_cart_button:hover,
.product_type_simple:hover {
    transform: translateY(-2px);
}

.bt-button--dark,
.button,
.add_to_cart_button,
.product_type_simple {
    color: #fff;
    background: linear-gradient(135deg, var(--bt-cocoa), var(--bt-berry));
    box-shadow: 0 14px 28px rgba(77, 38, 24, 0.2);
}

.bt-button--light {
    color: var(--bt-cocoa);
    background: #fff;
    border: 1px solid var(--bt-line);
}

.bt-hero__media,
.bt-promo__media,
.bt-story__media {
    position: relative;
    min-height: 360px;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 224, 121, 0.28)),
        repeating-linear-gradient(135deg, rgba(255, 95, 134, 0.07) 0 10px, transparent 10px 22px);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius-lg);
    box-shadow: var(--bt-shadow);
}

.bt-hero__image,
.bt-promo__image,
.bt-story__image {
    width: 100%;
    height: 100%;
    min-height: 328px;
    object-fit: cover;
    border-radius: 26px;
}

.bt-hero__badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 210px;
    padding: 12px 14px;
    color: var(--bt-cocoa);
    font-size: 0.88rem;
    font-weight: 900;
    background: var(--bt-lemon);
    border: 4px solid #fff;
    border-radius: 18px;
    box-shadow: 0 16px 28px rgba(77, 38, 24, 0.16);
}

.candy-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 328px;
    overflow: hidden;
}

.candy-placeholder span {
    position: absolute;
    display: block;
    border: 9px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(77, 38, 24, 0.15);
}

.candy-placeholder span:nth-child(1) {
    width: 56%;
    height: 34%;
    background: var(--bt-rose);
    border-radius: 999px;
    transform: rotate(-18deg);
}

.candy-placeholder span:nth-child(2) {
    right: 13%;
    bottom: 16%;
    width: 30%;
    height: 28%;
    background: var(--bt-orange);
    border-radius: 50%;
}

.candy-placeholder span:nth-child(3) {
    top: 15%;
    left: 13%;
    width: 27%;
    height: 23%;
    background: var(--bt-mint);
    border-radius: 45% 55% 40% 60%;
}

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

.bt-feature-card,
.bt-category-card,
.bt-fake-product,
.bt-product-card,
.bt-blog-card {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    box-shadow: var(--bt-shadow-soft);
}

.bt-feature-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
    border-radius: 24px;
}

.bt-feature-card span {
    display: block;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bt-lemon), var(--bt-rose));
    border: 5px solid #fff;
    border-radius: 42% 58% 55% 45%;
    grid-row: span 2;
}

.bt-feature-card strong {
    display: block;
    color: var(--bt-cocoa);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.45;
}

.bt-feature-card p {
    margin: -4px 0 0;
    color: var(--bt-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.bt-strip {
    margin: 32px 0 56px;
    overflow: hidden;
    background: var(--bt-cocoa);
    transform: rotate(-0.75deg);
}

.bt-strip__items {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
}

.bt-strip__items span::before {
    margin-left: 8px;
    color: var(--bt-lemon);
    content: "●";
}

.bt-promo,
.bt-story,
.bt-cta {
    margin-block: clamp(54px, 7vw, 92px);
}

.bt-promo {
    padding: clamp(14px, 2.4vw, 28px);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius-lg);
}

.bt-promo h2,
.bt-story h2,
.bt-cta h2,
.bt-section__head h2 {
    font-size: clamp(1.75rem, 3.2vw, 3.15rem);
}

.bt-promo p:not(.bt-kicker),
.bt-story p:not(.bt-kicker),
.bt-cta p {
    color: var(--bt-muted);
    font-size: 0.98rem;
}

.bt-section {
    padding-block: 34px;
}

.bt-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.bt-section__head--center {
    display: block;
    margin-inline: auto;
    margin-bottom: 24px;
    max-width: 680px;
    text-align: center;
}

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

.bt-category-card,
.bt-fake-product,
.bt-product-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 26px;
}

.bt-category-card {
    display: grid;
    min-height: 190px;
    align-content: space-between;
    color: var(--bt-cocoa);
    font-size: 1rem;
    font-weight: 900;
}

.bt-category-card img {
    width: 100%;
    aspect-ratio: 1.15;
    object-fit: cover;
    border-radius: 20px;
}

.bt-category-card strong {
    margin-top: 10px;
}

.bt-category-card__shape,
.bt-fake-product__shape {
    display: block;
    width: 100%;
    aspect-ratio: 1.2;
    background:
        radial-gradient(circle at 28% 36%, #fff 0 10%, transparent 11%),
        radial-gradient(circle at 62% 56%, #fff 0 9%, transparent 10%),
        linear-gradient(135deg, var(--bt-rose), var(--bt-orange));
    border-radius: 48% 52% 43% 57%;
}

.bt-products {
    padding: clamp(54px, 7vw, 88px) 0;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 121, 0.42), transparent 18rem),
        linear-gradient(180deg, rgba(255, 95, 134, 0.1), rgba(255, 159, 46, 0.13));
}

.bt-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: var(--bt-product-font);
    text-align: right;
}

.bt-product-card__image img {
    width: 100%;
    aspect-ratio: 1.05;
    object-fit: cover;
    margin: 0 0 12px;
    border-radius: 20px;
}

.bt-product-card h3,
.bt-fake-product h3 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--bt-cocoa);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.65;
}

.bt-product-card__price {
    margin-top: auto;
    color: var(--bt-berry);
    font-size: 0.95rem;
    font-weight: 900;
}

.bt-product-card .button,
.bt-product-card .add_to_cart_button,
.bt-product-card .product_type_simple {
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.bt-fake-product p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 0.82rem;
}

.bt-story {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

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

.bt-stats span {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--bt-line);
    border-radius: 18px;
    color: var(--bt-muted);
    font-size: 0.82rem;
}

.bt-stats strong {
    display: block;
    color: var(--bt-berry);
    font-size: 1.15rem;
    line-height: 1.3;
}

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

.bt-blog-card {
    padding: 14px;
    border-radius: 26px;
}

.bt-blog-card img,
.bt-blog-card__shape {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 20px;
}

.bt-blog-card__shape {
    background:
        radial-gradient(circle at 25% 40%, #fff 0 10%, transparent 11%),
        linear-gradient(135deg, var(--bt-mint), var(--bt-lemon));
}

.bt-blog-card time {
    color: var(--bt-berry);
    font-size: 0.8rem;
    font-weight: 900;
}

.bt-blog-card h3 {
    margin: 6px 0 10px;
    color: var(--bt-cocoa);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.65;
}

.bt-read-more {
    color: var(--bt-berry);
    font-size: 0.86rem;
    font-weight: 900;
}

.bt-cta {
    padding: clamp(28px, 4.5vw, 56px);
    text-align: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55), transparent 9rem),
        linear-gradient(135deg, var(--bt-lemon), var(--bt-orange) 55%, var(--bt-rose));
    border-radius: var(--bt-radius-lg);
    box-shadow: var(--bt-shadow);
}

.bt-cta p {
    max-width: 620px;
    margin-inline: auto;
}

.site-footer {
    margin-top: 64px;
    color: #fff;
    background: #2d180f;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0;
}

.site-footer__menu a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.posts-list,
.content-page {
    padding: 56px 0;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 18px;
    padding: 14px;
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: 26px;
}

.post-card__image img,
.single-post__image img {
    width: 100%;
    border-radius: 20px;
}

.post-card__meta {
    color: var(--bt-muted);
    font-size: 0.88rem;
}

@media (max-width: 1100px) {
    .site-header__content {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
    }

    .site-nav__menu {
        justify-content: flex-start;
    }

    .site-header__actions {
        padding-inline: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 28px);
    }
}

@media (max-width: 980px) {
    .site-footer__inner {
        flex-wrap: wrap;
    }

    .bt-hero__grid,
    .bt-promo,
    .bt-story {
        grid-template-columns: 1fr;
    }

    .bt-hero__content {
        max-width: 720px;
    }

    .bt-category-grid,
    .bt-product-grid,
    .bt-features,
    .bt-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .container {
        width: min(100% - 24px, var(--bt-container));
    }

    .site-header {
        position: relative;
    }

    .site-header__main {
        flex-direction: column;
    }

    .site-header__content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        padding-block: 12px;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        order: 0;
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--bt-line);
        border-radius: 18px;
    }

    body.is-menu-open .site-nav {
        display: block;
    }

    .site-nav__menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-header__actions {
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
        clip-path: none;
    }

    .site-actions__cart,
    .site-actions__account {
        flex: 1 1 auto;
        justify-content: center;
    }

    .site-footer__inner,
    .site-footer__menu,
    .bt-section__head {
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav__menu a,
    .site-actions__cart,
    .site-actions__account,
    .bt-button {
        justify-content: center;
    }

    .bt-hero {
        padding-top: 34px;
    }

    .bt-hero__content h1 {
        max-width: 360px;
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.28;
    }

    .bt-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .bt-hero__media,
    .bt-promo__media,
    .bt-story__media {
        min-height: 260px;
        padding: 12px;
        border-radius: 28px;
    }

    .bt-hero__image,
    .bt-promo__image,
    .bt-story__image,
    .candy-placeholder {
        min-height: 236px;
        border-radius: 20px;
    }

    .bt-hero__badge {
        right: 18px;
        bottom: 18px;
        max-width: 180px;
        font-size: 0.78rem;
    }

    .bt-promo h2,
    .bt-story h2,
    .bt-cta h2,
    .bt-section__head h2 {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
        line-height: 1.35;
    }

    .bt-features {
        grid-template-columns: 1fr;
    }

    .bt-category-grid,
    .bt-product-grid,
    .bt-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bt-category-card,
    .bt-fake-product,
    .bt-product-card,
    .bt-blog-card {
        padding: 10px;
        border-radius: 20px;
    }

    .bt-category-card {
        min-height: 150px;
        font-size: 0.88rem;
    }

    .bt-product-card h3,
    .bt-fake-product h3,
    .bt-blog-card h3 {
        font-size: 0.86rem;
    }

    .bt-stats,
    .post-card {
        grid-template-columns: 1fr;
    }

    .bt-strip__items {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .bt-category-grid,
    .bt-product-grid,
    .bt-blog-grid {
        grid-template-columns: 1fr;
    }
}
