:root {
    --font-farsi: 'Vazirmatn', sans-serif;
    --accent: #CCFF00;
    --bg-card: #151515;
    --bg-main: #1A1C20;
    --text: #F2F2F5;
    --border: 1px solid #363A43;
    --accent-rgb: 163, 255, 0;
    --hero-desktop-img: url('img/hero.jpeg');
    --hero-mobile-img: url('img/BackMobile/mainMobile.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.03);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #d9ff33;
}

span, button, a, input, .cat-name, .section-title, .cat-btn {
    font-family: var(--font-farsi);
}

[lang="en"], .en, .number {
    font-family: 'Roboto Mono', monospace;
}

body {
    background: var(--bg-main);
    color: var(--text);
    font-family: var(--font-farsi);
    direction: rtl;
    line-height: 1.6;
    font-feature-settings: "tnum";
    overflow-x: hidden;
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: pointer;
    white-space: nowrap;
}

.logo-part1 {
    color: #fff;
    margin-right: 4px;
}

.logo-part2 {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-grow: 1;
    justify-content: center;
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.icon-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 0 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown-wrapper:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.dropdown-column {
    min-width: 0;
}

.dropdown-productGroup-title {
    color: #CCFF00;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column ul li {
    margin-bottom: 4px;
}

.dropdown-column ul li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.25s ease;
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.dropdown-column ul li a:hover {
    color: #fff;
    padding-right: 8px;
    border-bottom-color: rgba(204, 255, 0, 0.15);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(204, 255, 0, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    order: 3;
}

.icon-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.glass-tooltip {
    position: absolute;
    top: 150%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.icon-wrapper:hover .glass-tooltip {
    opacity: 1;
    visibility: visible;
    top: 130%;
}

/* ==================== HERO ==================== */
.hero {
    padding: 100px 40px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0a0c10;
    direction: rtl;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.65));
    z-index: 1;
    pointer-events: none;
}

.hero-right-column {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 24px;
    flex: 1;
}

.hero-left-column {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 20px;
    width: 100%;
    flex: 1;
}

.text-container {
    position: relative;
    width: 100%;
}

.promo-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.promo-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    width: 100%;
}

.cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
    background-color: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.25);
}

.hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
    margin: 0;
    width: 100%;
}

.search-container {
    width: 100%;
    position: relative;
}

.search-container input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 28px;
    width: 100%;
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.4s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-container input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.1);
}

.search-results {
    width: 100%;
    background: rgba(22, 22, 26, 0.9);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-top: 12px;
    padding: 8px 0;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    z-index: 100;
    position: relative;
    transition: all 0.3s ease;
}

.search-results::-webkit-scrollbar {
    width: 3px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    position: relative;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-result-item .result-info {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-name {
    color: #f5f5f7;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item .result-meta {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    margin-top: 2px;
}

.search-result-item .result-stock {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 14px;
    border-radius: 999px;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.search-result-item .result-stock.in-stock {
    color: #34c759;
    background: rgba(52, 199, 89, 0.08);
    border: 1px solid rgba(52, 199, 89, 0.12);
}

.search-result-item .result-stock.low-stock {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.12);
}

.search-result-item .result-stock.out-of-stock {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.12);
}

.search-loading,
.search-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-results:not(:empty) {
    animation: searchFadeIn 0.25s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.takumi-wrapper {
    width: 100%;
    padding: 40px 24px;
}

.takumi-card {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 70px 80px;
    background: linear-gradient(180deg, rgba(42, 45, 52, 0.98), rgba(21, 21, 21, 0.98));
    border: var(--border);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.takumi-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.takumi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(var(--accent-rgb), 0.06), transparent 40%);
}

.takumi-card > * {
    position: relative;
    z-index: 1;
}

.takumi-card h2 {
    text-align: center;
    margin: 0 auto 40px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #F2F2F5 0%, #CCFF00 50%, #F2F2F5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.takumi-card h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.6;
}

.takumi-card p,
.takumi-card li {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
}

.takumi-card ul {
    padding-right: 22px;
    margin: 16px 0 0;
}

.takumi-card li {
    margin-bottom: 12px;
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

.number {
    color: var(--accent);
    font-weight: 800;
    margin-left: 8px;
}

.takumi-card strong {
    color: var(--text);
    font-weight: 700;
}

.takumi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.25);
    color: rgba(204, 255, 0, 0.85);
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    letter-spacing: 0.3px;
}

.takumi-btn:hover {
    background: rgba(204, 255, 0, 0.16);
    border-color: rgba(204, 255, 0, 0.45);
    color: rgba(204, 255, 0, 1);
    transform: scale(1.02);
}

.takumi-btn-collapse {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
}

.takumi-btn-collapse:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.section {
    padding: 80px 40px;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto 60px auto;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.cat-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    min-height: 480px;
    padding: 32px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    isolation: isolate;
}

.cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    transition: background 0.35s ease;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cat-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.cat-info {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.cat-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-align: center;
}

.cat-btn {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: inherit;
}

.cat-btn:hover {
    background: var(--accent);
    color: #111;
}

.footer {
    background: #0c0c0c;
    color: #fff;
    padding: 40px 20px;
    border-top: 3px solid #ccff00;
    direction: rtl;
    transition: all 0.4s ease;
}

.footer-inner {
    max-width: 1200px;
    margin: 60px auto;
}

.footer-about-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-about-text {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    line-height: 2;
    font-size: 15px;
    color: #e6e6e6;
}

.footer-about-text.open {
    max-height: 500px;
}

.footer-links-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3 {
    font-size: 16px;
    color: #ccff00;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #ccff00;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    outline: none;
}

.newsletter-form button {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: #ccff00;
    color: #0c0c0c;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
}

.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-search-toggle:hover,
.mobile-search-toggle.active {
    color: var(--accent);
    transform: scale(1.1);
}

.mobile-search-panel {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 16px;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mobile-search-panel.active {
    display: block;
    animation: mobileSearchFadeIn 0.25s ease;
}

@keyframes mobileSearchFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-search-panel input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.mobile-search-panel input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.1);
}

.mobile-search-panel .search-results {
    margin-top: 10px;
    max-height: 55vh;
    border-radius: 14px;
    overflow-y: auto;
}

@media (max-width: 992px) {

    .main-header {
        position: fixed;
        top: 0;
        height: 56px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.85);
        background: none;
        border: none;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s ease;
        z-index: 1001;
    }

    .menu-toggle.active {
        color: var(--accent);
        transform: rotate(90deg);
    }

    .mobile-search-toggle {
        display: flex;
        font-size: 1.2rem;
        padding: 2px 4px;
    }

    .nav-container {
        gap: 10px;
        padding: 0 14px;
    }

    .nav-icons {
        margin-right: auto;
        margin-left: 0;
        gap: 12px;
    }

    .logo-container {
        flex-grow: 0;
        font-size: 1.2rem;
    }

    .icon-link {
        font-size: 20px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        overflow-anchor: none;
        overscroll-behavior: contain;
        background: rgba(15, 15, 18, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 20px 16px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        pointer-events: none;
        list-style: none;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }

    .nav-links::-webkit-scrollbar {
        width: 5px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }

    .nav-links > li:last-child {
        border-bottom: none;
    }

    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 0.95rem;
        text-align: right;
        color: rgba(255, 255, 255, 0.85);
        font-family: var(--font-farsi);
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .nav-links > li > a:hover {
        color: var(--accent);
    }

    .dropdown-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .dropdown-trigger .arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.65rem;
        transition: all 0.3s ease;
        margin-right: 8px;
        line-height: 1;
    }

    .dropdown-wrapper.open .dropdown-trigger .arrow {
        transform: rotate(180deg);
        background: rgba(204, 255, 0, 0.15);
        color: var(--accent);
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown-wrapper.open .dropdown-menu {
        display: block;
        animation: dropdownSlide 0.3s ease;
    }

    @keyframes dropdownSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-inner {
        padding: 4px 0 12px;
    }

    .dropdown-columns {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .dropdown-column {
        padding: 12px;
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .dropdown-productGroup-title {
        color: var(--accent);
        font-size: 0.75rem;
        font-weight: 700;
        margin: 0 0 8px;
        padding: 0;
        border: none;
        letter-spacing: 0.2px;
    }

    .dropdown-column ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
        margin: 0;
    }

    .dropdown-column ul li {
        margin: 0;
    }

    .dropdown-column ul li a {
        display: block;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.75rem;
        padding: 8px 4px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 7px;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s ease;
        border: none;
    }

    .dropdown-column ul li a:hover,
    .dropdown-column ul li a:active {
        background: rgba(204, 255, 0, 0.12);
        color: var(--accent);
    }

    .mobile-search-panel {
        top: 56px;
        padding: 10px 14px 14px;
    }

    /* ===== HERO MOBILE ===== */
    .hero {
        padding: 90px 16px 40px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        background-image: none;
        background-color: #0a0c10;
    }

    .hero-bg-img {
        content: url('img/BackMobile/mainMobile.png');
    }

    .hero-right-column,
    .hero-left-column,
    .hero .text-container,
    .hero .promo-text {
        display: contents;
    }

    .hero .promo-text h2 { order: 1; }
    .hero .promo-text p  { order: 2; }
    .hero h1             { order: 3; }
    .hero .search-container { order: 4; }
    .hero .search-results   { order: 5; }
    .hero .hero-buttons     { order: 6; }

    .hero .promo-text h2 {
        width: 100%;
        text-align: center;
        font-size: 1.4rem;
        margin: 0;
        position: relative;
        z-index: 2;
    }

    .hero .promo-text p {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.75;
        margin: 0;
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.5;
        margin: 0;
        position: relative;
        z-index: 2;
    }

    .hero .search-container {
        width: 90%;
        max-width: 500px;
        margin: 4px auto 0;
        position: relative;
        z-index: 2;
    }

    .hero .search-container input {
        padding: 14px 18px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 12px;
    }

    .hero .search-results {
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    .hero .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 90%;
        max-width: 320px;
        margin: 8px auto 0;
        align-items: stretch;
        position: relative;
        z-index: 2;
    }

    .hero .hero-buttons .cta-button:nth-child(1) { order: 1; }
    .hero .hero-buttons .cta-button:nth-child(2) { order: 2; }
    .hero .hero-buttons .cta-button:nth-child(3) { order: 3; }

    .hero .cta-button {
        padding: 13px 18px;
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
    }

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

    .cat-card {
        min-height: 180px;
        padding: 12px;
        border-radius: 14px;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #14161a;
    }

    .cat-card::before {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0) 75%
        );
    }

    .cat-info {
        gap: 8px;
    }

    .cat-name {
        font-size: 0.9rem;
    }

    .cat-btn {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .takumi-wrapper {
        padding: 20px 12px;
    }

    .takumi-card {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .takumi-card h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .takumi-card h3 {
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .takumi-card p,
    .takumi-card li {
        font-size: 0.82rem;
        line-height: 1.8;
    }

    .takumi-card ul {
        padding-right: 16px;
        margin-top: 10px;
    }

    .takumi-card li {
        margin-bottom: 8px;
    }

    .takumi-btn {
        padding: 9px 20px;
        font-size: 0.78rem;
    }

    .section {
        padding: 40px 14px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }

    .section-title::after {
        width: 60px;
    }

    .footer {
        padding: 24px 14px;
    }

    .footer-inner {
        margin: 24px auto;
    }

    .footer-about-text {
        font-size: 13px;
        line-height: 1.85;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .footer-column {
        min-width: 0;
    }

    .footer-column h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .footer-column ul li {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .footer-column:nth-child(3) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-column:nth-child(3) .newsletter-form {
        max-width: 320px;
        margin: 0 auto;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 14px;
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .main-header {
        height: 52px;
    }

    .nav-container {
        padding: 0 10px;
        gap: 6px;
    }

    .logo-container {
        font-size: 1.05rem;
        letter-spacing: -0.5px;
    }

    .icon-link {
        font-size: 18px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .mobile-search-toggle {
        font-size: 1.05rem;
    }

    .nav-icons {
        gap: 8px;
    }

    .nav-links {
        top: 52px;
        max-height: calc(100vh - 52px);
        overflow-anchor: none;
        padding: 16px 12px 30px;
    }

    .nav-links > li > a {
        padding: 12px 4px;
        font-size: 0.9rem;
    }

    .dropdown-column {
        padding: 10px;
    }

    .dropdown-productGroup-title {
        font-size: 0.72rem;
        margin-bottom: 7px;
    }

    .dropdown-column ul li a {
        font-size: 0.72rem;
        padding: 7px 3px;
    }

    .mobile-search-panel {
        top: 52px;
        padding: 8px 10px 12px;
    }

    .hero {
        padding: 80px 12px 32px;
        gap: 12px;
    }

    .hero .promo-text h2 {
        font-size: 1.25rem;
    }

    .hero .promo-text p {
        font-size: 0.78rem;
        line-height: 1.7;
    }

    .hero h1 {
        font-size: 1rem;
        line-height: 1.45;
    }

    .hero .search-container input {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .hero .hero-buttons {
        gap: 8px;
        max-width: 280px;
    }

    .hero .cta-button {
        padding: 11px 14px;
        font-size: 0.78rem;
        border-radius: 40px;
    }

    .category-grid {
        gap: 8px;
    }

    .cat-card {
        min-height: 150px;
        padding: 10px;
        border-radius: 12px;
    }

    .cat-info {
        gap: 6px;
    }

    .cat-name {
        font-size: 0.8rem;
    }

    .cat-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .takumi-wrapper {
        padding: 16px 10px;
    }

    .takumi-card {
        padding: 22px 14px;
        border-radius: 14px;
    }

    .takumi-card h2 {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .takumi-card h3 {
        font-size: 0.9rem;
        margin-top: 16px;
    }

    .takumi-card p,
    .takumi-card li {
        font-size: 0.76rem;
        line-height: 1.75;
    }

    .takumi-btn {
        padding: 8px 16px;
        font-size: 0.72rem;
    }

    .section {
        padding: 32px 12px;
    }

    .section-title {
        font-size: 1.05rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-title::after {
        width: 50px;
    }

    .footer {
        padding: 20px 12px;
    }

    .footer-about-text {
        font-size: 12px;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-column ul li {
        font-size: 11px;
    }
}