:root {
    --font-farsi: 'Vazirmatn', sans-serif;
    --font-eng: 'Roboto Mono', monospace;
    --accent: #CCFF00;
    --bg-card: #151515;
    --bg-main: #1A1C20;
    --text: #F2F2F5;
    --border: 1px solid #363A43;
    --accent-rgb: 163, 255, 0;
}

* { 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: var(--font-eng); }

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%;
}

.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-wrapper {
    position: relative;
    width: 100%;
}

.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 52px 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-submit {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(204, 255, 0, 0.25);
    background: rgba(204, 255, 0, 0.12);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-search-submit svg {
    width: 18px;
    height: 18px;
}

.mobile-search-submit:hover,
.mobile-search-submit:active {
    background: var(--accent);
    color: #0b1220;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.35);
}

.store-search-section {
    padding: 90px 8% 0;
    background: #020617;
}

.store-search-container {
    max-width: 900px;
    margin: 0 auto;
}

.store-search-input {
    width: 100%;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.4s ease;
}

.store-search-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.store-search-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.1);
}

.shop {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 8% 60px;
    background: #020617;
    min-height: 100vh;
}

.shop-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-sidebar::-webkit-scrollbar { width: 0; }

.sidebar-box {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.filter-box { order: 1; }
.appointment-box { order: 2; }

.shop-divider-mobile { display: none; }

.filters-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.filter-group { margin-bottom: 16px; }

.filter-group label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.05);
}

.filter-group select option { background: #0b1220; color: white; }

.reset-filters {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.reset-filters:hover {
    color: var(--accent);
    border-color: rgba(204, 255, 0, 0.15);
}

#productGroupFilter[size="6"] { max-height: 240px; overflow-y: auto; padding: 6px 0; }
#productGroupFilter option { padding: 10px 14px; background: #0b1220; color: white; cursor: pointer; }
#productGroupFilter option:hover { background: rgba(204, 255, 0, 0.1); }
#productGroupFilter option:checked { background: #CCFF00; color: #0b1220; font-weight: 600; }

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-form input,
.appointment-form select {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.appointment-form input:focus,
.appointment-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.05);
}

.appointment-form input::placeholder { color: rgba(255, 255, 255, 0.3); }
.appointment-form select option { background: #0b1220; }

.appointment-date {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.appointment-date::placeholder { color: rgba(255, 255, 255, 0.3); }

.date-wrapper { position: relative; width: 100%; }
.date-wrapper .appointment-date { padding: 12px 40px 12px 14px; }

.date-wrapper .date-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-size: 1.1rem;
}

.appointment-btn {
    padding: 14px;
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 980px;
    color: #CCFF00;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 4px;
}

.appointment-btn:hover {
    background: rgba(204, 255, 0, 0.2);
    border-color: rgba(204, 255, 0, 0.35);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.06);
}

.appointment-message {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
    text-align: center;
    border: 1px solid transparent;
}

.appointment-message.success {
    display: block !important;
    background: rgba(204, 255, 0, 0.08);
    border-color: #CCFF00;
    color: #CCFF00;
}

.appointment-message.error {
    display: block !important;
    background: rgba(255, 70, 70, 0.08);
    border-color: #ff4d4d;
    color: #ff6b6b;
}

.jalali-datepicker-container {
    background: rgba(20, 22, 28, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    font-family: var(--font-farsi) !important;
    direction: rtl !important;
    color: #fff !important;
}

.jalali-datepicker-container .header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #CCFF00 !important;
}

.jalali-datepicker-container .header .title { color: #CCFF00 !important; }
.jalali-datepicker-container .header .arrow { color: rgba(255, 255, 255, 0.6) !important; }
.jalali-datepicker-container .header .arrow:hover { color: #CCFF00 !important; }

.jalali-datepicker-container .table .row .cell {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
}

.jalali-datepicker-container .table .row .cell:hover {
    background: rgba(204, 255, 0, 0.1) !important;
    color: #CCFF00 !important;
}

.jalali-datepicker-container .table .row .cell.selected {
    background: #CCFF00 !important;
    color: #0b1220 !important;
    font-weight: 600 !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(204, 255, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.product-card .pc-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}

.product-card .pc-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .pc-image img { transform: scale(1.05); }

.product-card .pc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 28, 32, 0.4) 0%, rgba(26, 28, 32, 0.9) 100%);
}

.product-card .pc-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-card .pc-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.product-card .pc-brand { color: #CCFF00; font-weight: 600; }
.product-card .pc-separator { color: rgba(255, 255, 255, 0.15); }
.product-card .pc-category-name { color: rgba(255, 255, 255, 0.4); }
.product-card .pc-model { color: rgba(255, 255, 255, 0.3); }

.product-card .pc-price {
    color: #CCFF00;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 4px;
}

.product-card .pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    margin-top: auto;
}

.product-card .pc-btn:hover {
    background: var(--accent);
    color: #0b1220;
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.15);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: rgba(204, 255, 0, 0.1);
    border-color: rgba(204, 255, 0, 0.3);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
    font-weight: 700;
}

.page-dots {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 6px;
    font-size: 1rem;
    user-select: none;
}

.loading, .no-product {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1;
}

.footer {
    background: #0c0c0c;
    color: #fff;
    padding: 10px 20px;
    border-top: 2px solid #ccff00;
    direction: rtl;
}

.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;
    line-height: 2;
    font-size: 15px;
    color: #e6e6e6;
}

.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;
}

@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; 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-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;
    }

    .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; }
    .dropdown-menu::before { display: none; }

    .dropdown-inner { padding: 8px 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;
    }

    .dropdown-column ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .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-align: center;
        border: none;
    }

    .dropdown-column ul li a:hover {
        background: rgba(204, 255, 0, 0.12);
        color: var(--accent);
    }

    .mobile-search-panel { top: 56px; padding: 10px 14px 14px; }

    .store-search-section { display: none; }

    .shop {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 80px 5% 40px;
    }

    .shop-sidebar {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        order: 1;
    }

    .shop-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        min-width: 0;
        order: 2;
    }

    .sidebar-box {
        width: 100%;
        flex: 0 0 auto;
        min-width: 0;
        padding: 14px;
        border-radius: 14px;
    }

    .sidebar-box.appointment-box { order: 1; }
    .sidebar-box.filter-box { order: 2; }

    .filters-title { font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 0; }

    .filter-group { margin-bottom: 10px; }
    .filter-group label { font-size: 11px; margin-bottom: 4px; }

    .filter-group select {
        padding: 8px 10px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .reset-filters {
        font-size: 11px;
        padding: 8px;
        margin-top: 10px;
    }

    .appointment-form { gap: 8px; }

    .appointment-form input,
    .appointment-form select {
        padding: 8px 10px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .date-wrapper .appointment-date {
        padding: 8px 32px 8px 10px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .date-wrapper .date-icon { font-size: 0.9rem; left: 10px; }

    .appointment-btn {
        padding: 10px;
        font-size: 0.82rem;
        margin-top: 2px;
    }

    .shop-divider-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px 0 4px;
    }

    .shop-divider-mobile .divider-line {
        flex: 1;
        height: 1px;
    }

    .shop-divider-mobile .divider-line:first-child {
        background: linear-gradient(90deg, transparent 0%, rgba(204, 255, 0, 0.3) 100%);
    }

    .shop-divider-mobile .divider-line:last-child {
        background: linear-gradient(90deg, rgba(204, 255, 0, 0.3) 0%, transparent 100%);
    }

    .shop-divider-mobile .divider-label {
        color: var(--accent);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        white-space: nowrap;
        padding: 6px 14px;
        background: rgba(204, 255, 0, 0.06);
        border: 1px solid rgba(204, 255, 0, 0.18);
        border-radius: 999px;
        text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
        position: relative;
    }

    .shop-divider-mobile .divider-label::before,
    .shop-divider-mobile .divider-label::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 3px;
        height: 3px;
        background: var(--accent);
        border-radius: 50%;
        transform: translateY(-50%);
        box-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
    }

    .shop-divider-mobile .divider-label::before { right: -8px; }
    .shop-divider-mobile .divider-label::after { left: -8px; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .pc-image { height: 140px; padding: 8px; }
    .product-card .pc-info { padding: 12px 12px 14px; gap: 4px; }
    .product-card .pc-name { font-size: 0.82rem; min-height: 36px; }
    .product-card .pc-category { font-size: 0.65rem; }
    .product-card .pc-price { font-size: 0.85rem; }
    .product-card .pc-btn { padding: 7px 12px; font-size: 0.7rem; }

    .page-btn {
        min-width: 34px; height: 34px;
        font-size: 0.8rem;
        padding: 0 8px;
    }

    .footer { padding: 10px 16px; }
    .footer-inner { margin: 30px auto; }

    .footer-about-text {
        font-size: 13px;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 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: 30px;
        padding-top: 16px;
        font-size: 0.75rem;
    }
}

@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; padding: 16px 12px 30px; }
    .nav-links > li > a { padding: 12px 4px; font-size: 0.9rem; }

    .mobile-search-panel { top: 52px; padding: 8px 10px 12px; }

    .shop { padding: 70px 12px 30px; gap: 16px; }

    .shop-sidebar { gap: 8px; }
    .sidebar-box { padding: 12px; }
    .filters-title { font-size: 0.78rem; }
    .filter-group label { font-size: 10px; }
    .filter-group select { padding: 7px 8px; font-size: 0.72rem; }
    .appointment-form input,
    .appointment-form select { padding: 7px 8px; font-size: 0.72rem; }
    .date-wrapper .appointment-date { padding: 7px 28px 7px 8px; font-size: 0.72rem; }
    .appointment-btn { padding: 9px; font-size: 0.75rem; }

    .products-grid { gap: 10px; }
    .product-card .pc-image { height: 120px; }
    .product-card .pc-name { font-size: 0.75rem; }
    .product-card .pc-btn { font-size: 0.65rem; padding: 6px 10px; }

    .footer { padding: 20px 12px; }
    .footer-inner { margin: 20px auto; }

    .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; }
    .footer-bottom { margin-top: 24px; padding-top: 14px; font-size: 0.7rem; }
}