:root {
    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-2: #fffaf2;
    --ink: #1d1d1f;
    --muted: #737373;
    --line: rgba(30, 30, 30, 0.1);
    --primary: #2356d8;
    --primary-2: #0f2f82;
    --accent: #f59f00;
    --accent-2: #ffdf9e;
    --danger: #e03131;
    --success: #2f9e44;
    --france-blue: #113f9c;
    --france-red: #d92828;
    --germany-red: #d9480f;
    --germany-yellow: #ffd43b;
    --shadow: 0 18px 60px rgba(16, 24, 40, 0.1);
    --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(35, 86, 216, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(245, 159, 0, 0.16), transparent 30%),
        var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

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

button,
input {
    font-family: inherit;
}

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

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

.top-strip {
    background: #111827;
    color: #fff;
    font-size: 13px;
}

.top-strip__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-strip__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 245, 239, 0.78);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
}

.header-main {
    display: grid;
    grid-template-columns: 220px 1fr 310px;
    align-items: center;
    gap: 22px;
    padding: 18px 0 14px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #113f9c, #2356d8 48%, #f59f00 49%, #ffcf70);
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 12px 30px rgba(35, 86, 216, 0.28);
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: "";
    width: 24px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 4px 10px 10px 4px;
    transform: skewY(-7deg);
}

.logo-title {
    display: flex;
    flex-direction: column;
    line-height: 1.55;
}

.logo-title strong {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-title span {
    color: var(--muted);
    font-size: 12px;
}

.search {
    position: relative;
}

.search input {
    width: 100%;
    height: 56px;
    border: 1px solid rgba(35, 86, 216, 0.16);
    border-radius: 999px;
    outline: none;
    padding: 0 58px 0 128px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 42px rgba(16, 24, 40, 0.06);
    color: var(--ink);
    font-size: 14px;
    transition: 0.25s ease;
}

.search input:focus {
    border-color: rgba(35, 86, 216, 0.5);
    box-shadow: 0 18px 48px rgba(35, 86, 216, 0.14);
    background: #fff;
}

.search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    translate: 0 -50%;
    color: var(--primary);
    font-size: 19px;
}

.search button {
    position: absolute;
    left: 8px;
    top: 8px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(35, 86, 216, 0.25);
}

.header-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}

.action-btn {
    min-height: 54px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.04);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(35, 86, 216, 0.25);
}

.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f1f5ff;
    color: var(--primary);
    font-size: 18px;
    flex: 0 0 auto;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.action-text small {
    color: var(--muted);
    font-size: 11px;
}

.action-text strong {
    font-size: 13px;
    font-weight: 900;
}

.nav-wrap {
    border-top: 1px solid rgba(30, 30, 30, 0.07);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 56px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 15px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.nav-menu,
.nav-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-menu li {
    position: relative;
}

.nav-menu>li>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: #333;
    font-weight: 800;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-menu>li:hover>a {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.nav-menu ul {
    position: absolute;
    /* top: calc(100% + 8px); */
    right: 0;
    width: 245px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-menu li:hover>ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-menu ul ul {
    top: -10px;
    right: calc(100% + 10px);
    transform: translateX(8px);
}

.nav-menu ul li:hover>ul {
    transform: translateX(0);
}

.nav-menu ul a {
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #2b2b2b;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    transition: 0.2s ease;
}

.nav-menu ul a:hover {
    background: #f3f6ff;
    color: var(--primary);
    padding-right: 16px;
}

.arrow {
    direction: ltr;
    color: #9ca3af;
    font-size: 13px;
}

.nav-hotline {
    color: var(--primary-2);
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
}

.hero {
    padding: 28px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 315px;
    gap: 20px;
    align-items: stretch;
}

.hero-slider {
    position: relative;
    min-height: 440px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    padding: 54px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.92)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    left: -120px;
    top: -90px;
    z-index: -1;
}

.hero-content {
    max-width: 550px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.18;
    margin: 0 0 18px;
    letter-spacing: -1.4px;
}

.hero p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ffd43b);
    color: #221600;
    box-shadow: 0 16px 35px rgba(245, 159, 0, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.hero-dots {
    position: absolute;
    right: 48px;
    bottom: 32px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 32px;
    border-radius: 999px;
    background: #fff;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    padding: 24px;
    min-height: 212px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(30, 30, 30, 0.07);
}

.promo-card.dark {
    background: linear-gradient(135deg, #121826, #19346f);
    color: #fff;
}

.promo-card.gold {
    background: linear-gradient(135deg, #fff3bf, #fff);
}

.promo-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    left: -38px;
    bottom: -42px;
    background: rgba(35, 86, 216, 0.12);
}

.promo-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.5;
}

.promo-card p {
    margin: 0 0 16px;
    color: inherit;
    opacity: 0.75;
    line-height: 1.9;
    font-size: 13px;
}

.promo-tag {
    display: inline-flex;
    background: rgba(245, 159, 0, 0.18);
    color: #8a5800;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 12px;
}

.section {
    padding: 34px 0;
}

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

.section-kicker {
    display: inline-flex;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1.4;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.9;
    max-width: 640px;
    font-size: 14px;
}

.slider-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.ctrl {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
    transition: 0.2s ease;
}

.ctrl:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 24px 0 18px;
}

.product-row::-webkit-scrollbar {
    display: none;
}

.product-card {
    position: relative;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
    transition: 0.25s ease;
    min-height: 390px;
    display: flex;
    flex-direction: column;
}

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

.book-cover {
    /* height: 205px; */
    margin: 14px 14px 0;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: grid;
    place-items: center;
    color: #fff;
    isolation: isolate;
}

.book-cover::before {
    content: "";
    position: absolute;
    inset: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    z-index: -1;
}

.book-cover::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    height: 100%;
    width: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.book-cover span {
    text-align: center;
    padding: 0 28px;
    font-size: 23px;
    font-weight: 950;
    line-height: 1.45;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    background: #fff;
    color: var(--danger);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.stars {
    color: #f59f00;
    letter-spacing: -1px;
}

.product-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    min-height: 54px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.price {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.price del {
    color: #a0a0a0;
    font-size: 12px;
}

.price strong {
    color: var(--primary-2);
    font-size: 16px;
}

.add-cart {
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: 0.22s ease;
}

.add-cart:hover {
    background: var(--primary);
    transform: rotate(-5deg) scale(1.06);
}

.feature-section {
    border-radius: 34px;
    padding: 34px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.feature-section.france {
    background:
        linear-gradient(90deg, rgba(17, 63, 156, 0.92), rgba(255, 255, 255, 0.86) 52%, rgba(217, 40, 40, 0.86)),
        #fff;
}

.feature-section.german-grammar {
    background:
        radial-gradient(circle at right, rgba(255, 212, 59, 0.54), transparent 32%),
        linear-gradient(135deg, #111827, #3b0d0d);
    color: #fff;
}

.feature-section.german-books {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(217, 72, 15, 0.82), rgba(255, 212, 59, 0.78));
    color: #fff;
}

.feature-section.speaking {
    background:
        radial-gradient(circle at top left, rgba(35, 86, 216, 0.22), transparent 38%),
        linear-gradient(135deg, #f8fbff, #fff);
    border: 1px solid rgba(35, 86, 216, 0.12);
}

.feature-section .section-desc,
.feature-section .product-meta {
    color: inherit;
    opacity: 0.78;
}

.feature-section .section-kicker {
    color: inherit;
    opacity: 0.9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    transition: 0.25s ease;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(35, 86, 216, 0.2);
}

.cat-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    border-radius: 18px;

    background: linear-gradient(135deg, #eef4ff, #fff6df);

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 38px;
    line-height: 1;

    box-shadow:
        0 8px 20px rgba(16, 24, 40, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);

    text-shadow: none;
    overflow: hidden;
}

/* SVG ساخته‌شده توسط Twemoji */
.cat-icon img.emoji {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;

    display: block;
    margin: 0 !important;

    object-fit: contain;
    vertical-align: middle;
    pointer-events: none;

    filter: drop-shadow(0 4px 5px rgba(15, 23, 42, 0.16));
}

@media (max-width: 560px) {
    .cat-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .cat-icon img.emoji {
        width: 37px !important;
        height: 37px !important;
        max-width: 37px !important;
    }
}

.cat-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.cat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.cat-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    left: -25px;
    bottom: -25px;
    background: rgba(35, 86, 216, 0.08);
}

.why-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: stretch;
}

.why-panel {
    background: linear-gradient(135deg, #111827, #19346f);
    color: #fff;
    border-radius: 34px;
    padding: 38px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.why-panel::after {
    content: "";
    position: absolute;
    left: -110px;
    top: -110px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(245, 159, 0, 0.18);
}

.why-panel h2 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.35;
    letter-spacing: -1px;
}

.why-panel p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
    margin: 0 0 24px;
}

.why-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.why-badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 850;
}

.why-cards {
    display: grid;
    gap: 14px;
}

.why-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(30, 30, 30, 0.08);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f1f5ff;
    color: var(--primary);
    font-size: 25px;
    flex: 0 0 auto;
}

.why-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.editorial-card {
    background: #fff;
    border-radius: 28px;
    padding: 22px;
    border: 1px solid rgba(30, 30, 30, 0.08);
    box-shadow: var(--shadow-soft);
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.editorial-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.editorial-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.editorial-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.editorial-card a {
    font-weight: 900;
    color: var(--primary);
}

.brand-slider {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(30, 30, 30, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 22px 0;
}

.brand-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.brand-slider:hover .brand-track {
    animation-play-state: paused;
}

.brand-item {
    width: 178px;
    height: 86px;
    border-radius: 22px;
    border: 1px solid rgba(30, 30, 30, 0.08);
    background: linear-gradient(135deg, #f8fafc, #fff);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 950;
    color: #1f2937;
    letter-spacing: -0.5px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

.newsletter {
    background:
        radial-gradient(circle at left, rgba(245, 159, 0, 0.22), transparent 36%),
        linear-gradient(135deg, #2356d8, #0f2f82);
    color: #fff;
    border-radius: 34px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.newsletter h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.newsletter p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: flex;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.newsletter-form input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    padding: 0 16px;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-form button {
    border: 0;
    background: #fff;
    color: var(--primary-2);
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 950;
    cursor: pointer;
}

.footer {
    margin-top: 34px;
    background: #101828;
    color: #fff;
    padding: 56px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
}

.footer .logo-title span,
.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.68);
}

.footer p {
    line-height: 2;
    margin: 16px 0;
    font-size: 14px;
}

.footer h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 11px;
}

.footer-links a {
    transition: 0.2s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-4px);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    flex-wrap: wrap;
}

.toast {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 2000;
    font-weight: 850;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 1100px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: stretch;
    }

    .action-btn {
        flex: 1;
    }

    .hero-grid,
    .why-grid,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 820px) {
    .top-strip__inner {
        justify-content: center;
        text-align: center;
    }

    .top-strip__badges {
        display: none;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 0;
    }

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

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-radius: 20px;
        padding: 10px;
        box-shadow: var(--shadow-soft);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu>li>a {
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu ul,
    .nav-menu ul ul {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 0;
        background: #f8fafc;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        margin: 4px 0 8px;
    }

    .nav-menu li:hover>ul {
        display: block;
        transform: none;
    }

    .nav-hotline {
        display: none;
    }

    .hero-slider {
        min-height: 520px;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero-side,
    .editorial {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, var(--container));
    }

    .header-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .search input {
        height: 54px;
        padding-left: 92px;
    }

    .search button {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-slider {
        min-height: 560px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-section,
    .why-panel,
    .newsletter {
        padding: 24px;
        border-radius: 26px;
    }

    .product-row {
        grid-auto-columns: minmax(220px, 82vw);
    }

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

    .newsletter-form {
        border-radius: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input {
        min-height: 44px;
    }
}
/* =========================
   Header Mobile Fix
   put this at the END of css
========================= */

@media (max-width: 820px) {

    .top-strip {
        font-size: 11px;
    }

    .top-strip__inner {
        min-height: 34px;
        padding: 6px 0;
        justify-content: center;
        text-align: center;
        line-height: 1.8;
    }

    .top-strip__badges {
        display: none;
    }

    .header {
        position: relative;
        top: auto;
    }

    .header-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .logo {
        justify-content: center;
        min-width: 0;
        gap: 8px;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .logo-title {
        line-height: 1.45;
    }

    .logo-title strong {
        font-size: 19px;
    }

    .logo-title span {
        font-size: 11px;
    }

    .search input {
        height: 48px;
        font-size: 12px;
        padding: 0 44px 0 92px;
        box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
    }

    .search-icon {
        right: 16px;
        font-size: 17px;
    }

    .search button {
        height: 34px;
        top: 7px;
        left: 7px;
        padding: 0 14px;
        font-size: 12px;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .action-btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 8px 9px;
        border-radius: 16px;
        gap: 7px;
        justify-content: flex-start;
    }

    .action-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 12px;
        font-size: 16px;
    }

    .action-text {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .action-text small {
        font-size: 10px;
    }

    .action-text strong {
        font-size: 11px;
        line-height: 1.45;
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-wrap {
        background: rgba(255, 255, 255, 0.35);
    }

    .nav {
        position: relative;
        min-height: auto;
        padding: 8px 0;
        display: block;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 40px;
        padding: 0 14px;
        border-radius: 13px;
        font-size: 12px;
        box-shadow: 0 8px 20px rgba(35, 86, 216, 0.22);
    }

    .nav-hotline {
        display: none;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-radius: 18px;
        padding: 8px;
        box-shadow: 0 14px 35px rgba(16, 24, 40, 0.10);
        border: 1px solid rgba(30, 30, 30, 0.06);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li > a {
        width: 100%;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 12px;
        justify-content: space-between;
        font-size: 13px;
    }

    .nav-menu ul,
    .nav-menu ul ul {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 0;
        border-radius: 14px;
        background: #f6f8fc;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        padding: 6px;
        margin: 4px 0 8px;
    }

    .nav-menu li:hover > ul {
        display: none;
    }

    .nav-menu li.is-open > ul {
        display: block;
    }

    .nav-menu ul a {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
}

@media (max-width: 560px) {

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

    .header-main {
        padding: 10px 0;
        gap: 9px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
    }

    .logo-title strong {
        font-size: 18px;
    }

    .search input {
        height: 46px;
        padding-right: 42px;
        padding-left: 86px;
        font-size: 11px;
    }

    .search button {
        height: 32px;
        top: 7px;
        left: 7px;
        padding: 0 12px;
        font-size: 11px;
    }

    .header-actions {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .action-btn {
        min-height: 50px;
        padding: 7px;
        border-radius: 15px;
    }

    .action-icon {
        width: 31px;
        height: 31px;
        min-width: 31px;
        font-size: 15px;
        border-radius: 11px;
    }

    .action-text small {
        font-size: 9px;
    }

    .action-text strong {
        font-size: 10.5px;
    }

    .nav {
        padding: 7px 0;
    }

    .menu-toggle {
        height: 38px;
        padding: 0 13px;
        font-size: 12px;
        border-radius: 12px;
    }
}
.site-toast {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translate(-50%, -20px);
    min-width: 260px;
    max-width: calc(100% - 32px);
    padding: 13px 18px;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.22);
    transition: 0.25s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-toast.success {
    background: #2f9e44;
}

.site-toast.error {
    background: #e03131;
}
.search {
    position: relative;
    z-index: 50;
}

.live-search-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.14);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
    z-index: 9999;
}

.live-search-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-search-inner {
    display: grid;
    gap: 8px;
}

.live-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(30, 30, 30, 0.07);
}

.live-search-head span {
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.live-search-head a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 950;
}

.live-search-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.18s ease;
}

.live-search-item:hover {
    background: #f3f6ff;
}

.live-search-image {
    width: 54px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, var(--primary));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
}

.live-search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search-content {
    min-width: 0;
}

.live-search-content strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.live-search-meta span {
    background: #f8fafc;
    border: 1px solid rgba(30, 30, 30, 0.06);
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 10.5px;
    font-weight: 800;
}

.live-search-price {
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.live-search-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 16px;
    background: #f3f6ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 950;
}

.live-search-more:hover {
    background: var(--primary);
    color: #fff;
}

.live-search-state {
    padding: 18px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.live-search-state.empty {
    color: var(--danger);
}

@media (max-width: 820px) {
    .live-search-box {
        position: static;
        margin-top: 10px;
        border-radius: 20px;
    }

    .live-search-item {
        grid-template-columns: 48px 1fr;
    }

    .live-search-price {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .live-search-item {
        grid-template-columns: 44px 1fr;
        gap: 8px;
    }

    .live-search-image {
        width: 44px;
        height: 54px;
        border-radius: 12px;
    }

    .live-search-content strong {
        font-size: 12px;
    }

    .live-search-meta span {
        font-size: 10px;
    }
}
/* اصلاح قطعی کارت‌های سکشن کتاب‌های آلمانی */
.feature-section.german-books .product-card {
    color: #111827 !important;
    background: rgba(255, 255, 255, 0.97);
}

.feature-section.german-books .product-card .product-body,
.feature-section.german-books .product-card .product-title,
.feature-section.german-books .product-card .product-title a {
    color: #111827 !important;
}

.feature-section.german-books .product-card .product-meta,
.feature-section.german-books .product-card .product-meta span,
.feature-section.german-books .product-card .product-meta a {
    color: #737373 !important;
    opacity: 1 !important;
}

.feature-section.german-books .product-card .stars {
    color: #f59f00 !important;
}

.feature-section.german-books .product-card .price strong {
    color: #0f2f82 !important;
}

.feature-section.german-books .product-card .price del {
    color: #a0a0a0 !important;
}

.feature-section.german-books .product-card .badge {
    color: #e03131 !important;
}

/* متن پیش‌نمایش جلد بدون تصویر باید سفید بماند */
.feature-section.german-books .product-card .book-cover,
.feature-section.german-books .product-card .book-cover span {
    color: #fff !important;
}

/* =========================================================
   Product Discount Badge - Glass / Outside Card
========================================================= */

.product-card > .product-discount-badge {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 12;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 36px;
    max-width: calc(100% - 28px);
    padding: 7px 13px;

    color: #be123c !important;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;

    pointer-events: none;

    backdrop-filter: blur(15px) saturate(165%);
    -webkit-backdrop-filter: blur(15px) saturate(165%);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transform: translateY(-42%);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.product-card > .product-discount-badge::before {
    content: "";

    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;
    background: #e11d48;

    box-shadow:
        0 0 0 4px rgba(225, 29, 72, 0.1);
}

.product-card:hover > .product-discount-badge {
    transform: translateY(-48%);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/*
 * نشان ویژه همچنان داخل تصویر باقی می‌ماند.
 */
.product-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;

    min-width: 68px;
    min-height: 36px;
    padding: 7px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #3b2500;
    background:
        linear-gradient(
            135deg,
            #ffe28a 0%,
            #ffb000 58%,
            #f59f00 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;

    box-shadow:
        0 10px 25px rgba(16, 24, 40, 0.2);
}

@media (max-width: 560px) {
    .product-row {
        padding-top: 22px;
    }

    .product-card > .product-discount-badge {
        right: 12px;
        min-height: 34px;
        padding: 7px 11px;
        font-size: 10.5px;
        transform: translateY(-38%);
    }

    .product-card:hover > .product-discount-badge {
        transform: translateY(-42%);
    }

    .product-featured-badge {
        top: 10px;
        right: 10px;
        min-height: 34px;
        padding: 6px 10px;
    }
}

/* =========================
   English Books Section
========================= */

.feature-section.english-books {
    color: #fff;
    background:
        radial-gradient(
            circle at left top,
            rgba(255, 255, 255, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at right bottom,
            rgba(220, 38, 38, 0.32),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #081b4b 0%,
            #123f91 48%,
            #b91c1c 100%
        );
}

.feature-section.english-books .section-kicker,
.feature-section.english-books .section-title {
    color: #fff;
}

.feature-section.english-books .section-desc {
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
}

.feature-section.english-books .product-card {
    color: #111827;
    background: rgba(255, 255, 255, 0.97);
}

.feature-section.english-books .product-card .product-title,
.feature-section.english-books .product-card .product-title a {
    color: #111827;
}

.feature-section.english-books .product-card .product-meta,
.feature-section.english-books .product-card .product-meta span {
    color: #737373;
    opacity: 1;
}

.feature-section.english-books .product-card .price strong {
    color: var(--primary-2);
}

.feature-section.english-books .product-card .price del {
    color: #a0a0a0;
}

.feature-section.english-books .ctrl {
    color: #123f91;
    background: rgba(255, 255, 255, 0.96);
}

.feature-section.english-books .ctrl:hover {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.section-empty-message {
    color: inherit;
    font-weight: 800;
    padding: 18px 0;
}
/* =========================
   Recursive Category Menu
========================= */

.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-menu > li > ul {
    top: calc(100% + 8px);
}

/* منوی اصلی دسته‌بندی */
.category-menu-root > .category-menu-list {
    width: 300px;
    padding: 12px;
}

/* زیرمنوهای سطح دوم به بعد */
.nav-menu ul .menu-item-has-children > ul {
    top: -10px;
    right: calc(100% + 10px);
}

.nav-menu .submenu-toggle {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #f1f5ff;
    color: var(--primary);

    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.nav-menu ul li:hover > a .submenu-toggle {
    color: #fff;
    background: var(--primary);
}

/* جلوگیری از بیرون‌زدگی متن طولانی */
.category-menu-list a {
    min-width: 0;
}


@media (max-width: 820px) {
    .category-menu-root > .category-menu-list {
        width: 100%;
    }

    .nav-menu ul .menu-item-has-children > ul {
        position: static;
        width: 100%;
        margin: 5px 0 8px;
        transform: none;
    }

    .nav-menu .submenu-toggle {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .nav-menu li.is-open > ul {
        display: block;
    }
}
/* ==================================
   Desktop Menu Hover Stability Fix
================================== */

@media (min-width: 821px) {

    .nav-menu,
    .nav-menu li {
        position: relative;
    }

    /*
    |--------------------------------------------------------------------------
    | زیرمنوی سطح اول
    |--------------------------------------------------------------------------
    |
    | زیرمنو کاملاً به گزینه اصلی می‌چسبد و هیچ فضای خالی بینشان نمی‌ماند.
    |
    */

    .nav-menu > li > ul {
        top: calc(100% - 2px) !important;
        right: 0 !important;
        margin-top: 0 !important;

        z-index: 2000;
    }

    /*
    |--------------------------------------------------------------------------
    | پل نامرئی بین منوی اصلی و زیرمنو
    |--------------------------------------------------------------------------
    */

    .nav-menu > li > ul::before {
        content: "";
        position: absolute;

        right: 0;
        bottom: 100%;

        width: 100%;
        height: 14px;

        background: transparent;
    }

    /*
    |--------------------------------------------------------------------------
    | زیرمنوهای سطح دوم به بعد
    |--------------------------------------------------------------------------
    |
    | به‌جای فاصله 10 پیکسلی، کمی روی آیتم والد قرار می‌گیرند.
    |
    */

    .nav-menu ul li > ul {
        top: -10px !important;
        right: calc(100% - 6px) !important;
        margin: 0 !important;

        z-index: 2100;
    }

    /*
    |--------------------------------------------------------------------------
    | پل نامرئی بین زیرمنوهای کناری
    |--------------------------------------------------------------------------
    */

    .nav-menu ul li > ul::before {
        content: "";
        position: absolute;

        top: 0;
        right: -16px;

        width: 20px;
        height: 100%;

        background: transparent;
    }

    /*
    |--------------------------------------------------------------------------
    | کل ردیف آیتم منو hover محسوب شود
    |--------------------------------------------------------------------------
    */

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li > a {
        width: 100%;
        min-height: 44px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        position: relative;
        z-index: 2;
    }

    /*
    |--------------------------------------------------------------------------
    | باز ماندن منو روی hover و keyboard focus
    |--------------------------------------------------------------------------
    */

    .nav-menu li:hover > ul,
    .nav-menu li:focus-within > ul {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translate(0, 0) !important;
    }

    /*
    |--------------------------------------------------------------------------
    | حالت بسته
    |--------------------------------------------------------------------------
    */

    .nav-menu li > ul {
        visibility: hidden;

        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0s linear 0.12s;
    }

    .nav-menu li:hover > ul,
    .nav-menu li:focus-within > ul {
        transition-delay: 0s;
    }
}
/* ==================================
   نمایش کامل عنوان دسته‌بندی‌های منو
================================== */

@media (min-width: 821px) {

    /* عرض مناسب تمام زیرمنوها */
    .nav-menu ul {
        width: 340px !important;
        max-width: 340px;
        overflow: visible !important;
    }

    .category-menu-root > .category-menu-list {
        width: 300px !important;
        max-width: 300px;
    }

    /* لینک کل عرض ردیف را بگیرد */
    .nav-menu ul li > a {
        width: 100%;
        min-height: 44px;
        height: auto !important;

        padding: 10px 13px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        overflow: visible !important;
        white-space: normal !important;
    }

    /* نمایش کامل عنوان بدون سه‌نقطه */
    .nav-menu ul li > a > span:first-child,
    .category-menu-list a > span:first-child {
        flex: 1;
        min-width: 0;

        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;

        word-break: normal;
        overflow-wrap: anywhere;

        line-height: 1.75;
        text-align: right;
    }

    /* فلش اندازه ثابت داشته باشد */
    .nav-menu ul li > a .submenu-toggle,
    .nav-menu ul li > a .arrow {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
    }

    /* فاصله مناسب بین گزینه‌ها */
    .nav-menu ul li {
        width: 100%;
        height: auto;
    }
}
.product-row {
    padding-top: 24px;
}

.product-card {
    position: relative;
    overflow: visible;
}

.product-card > .product-discount-badge {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 12;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 36px;
    padding: 7px 13px;

    color: #be123c;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    pointer-events: none;

    backdrop-filter: blur(15px) saturate(165%);
    -webkit-backdrop-filter: blur(15px) saturate(165%);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transform: translateY(-42%);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.product-card > .product-discount-badge::before {
    content: "";

    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;
    background: #e11d48;

    box-shadow:
        0 0 0 4px rgba(225, 29, 72, 0.1);
}

.product-card:hover > .product-discount-badge {
    transform: translateY(-48%);

    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 560px) {
    .product-row {
        padding-top: 22px;
    }

    .product-card > .product-discount-badge {
        right: 12px;
        min-height: 34px;
        padding: 7px 11px;
        font-size: 10.5px;
        transform: translateY(-38%);
    }
}
.product-card > .product-new-badge {
    position: absolute;
    top: 0;
    left: 14px;
    z-index: 12;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 36px;
    padding: 7px 13px;

    color: #047857;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    pointer-events: none;

    backdrop-filter: blur(15px) saturate(165%);
    -webkit-backdrop-filter: blur(15px) saturate(165%);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transform: translateY(-42%);
}

.product-card > .product-new-badge::before {
    content: "";

    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;
    background: #10b981;

    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.12);
}

.product-card:hover > .product-new-badge {
    transform: translateY(-48%);
}

@media (max-width: 560px) {
    .product-card > .product-new-badge {
        left: 12px;
        min-height: 34px;
        padding: 7px 11px;
        font-size: 10.5px;
        transform: translateY(-38%);
    }
}