:root {
    --primary-color: #0f766e;
    --secondary-color: #2563eb;
    --accent-color: #f97316;
    --dark-color: #172033;
    --light-color: #f7faf9;
    --border-color: #e5e7eb;
}
body {
    font-family: 'Vazirmatn', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: #f8fafc;
}

.site-rtl {
    direction: rtl;
    text-align: right;
}

.shop-header {
    --header-primary: #6366f1;
    --header-primary-dark: #4f46e5;
    --header-secondary: #10b981;
    --header-accent: #f59e0b;
    --header-dark: #1e293b;
    --header-muted: #64748b;
    --header-border: #e5e7eb;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    z-index: 1040;
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--header-dark);
    line-height: 1.5;
}

.shop-header .container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}

.shop-header *,
.shop-header *::before,
.shop-header *::after {
    box-sizing: border-box;
}

.shop-header .header-service-bar {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #e8f0f4;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.shop-header .header-service-bar i {
    color: #7dd3fc;
    margin-left: 0.35rem;
}

.shop-header .service-call {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.shop-header .service-call:hover {
    color: #bae6fd;
}

.shop-header .shop-navbar {
    min-height: 82px;
    padding: 0.85rem 0;
}

.shop-header .shop-navbar > .container {
    align-items: center;
    gap: 1rem;
}

.shop-header .navbar-brand,
.shop-header .shop-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--header-dark) !important;
    text-decoration: none;
    min-width: 190px;
}

.shop-header .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--header-primary), var(--header-primary-dark));
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.24);
}

.shop-header .brand-copy {
    display: grid;
    line-height: 1.35;
}

.shop-header .brand-copy strong {
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--header-dark);
}

.shop-header .brand-copy small {
    color: var(--header-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.shop-header .header-search {
    align-items: center;
    flex: 1 1 420px;
    max-width: 620px;
    min-height: 48px;
    background: #f8fafc;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shop-header .header-search:focus-within {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.shop-header .header-search i {
    color: var(--header-muted);
    font-size: 1.35rem;
    margin-left: 0.45rem;
}

.shop-header .header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--header-dark);
    font: inherit;
    font-weight: 500;
}

.shop-header .header-search input::placeholder {
    color: #94a3b8;
}

.shop-header .header-search button {
    min-width: 84px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--header-primary), var(--header-primary-dark));
    color: #fff;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.shop-header .header-search button:hover {
    background: linear-gradient(135deg, var(--header-primary-dark), #4338ca);
    transform: translateY(-1px);
}

.shop-header .header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: auto;
}

.shop-header .header-action {
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header-dark);
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.shop-header .header-action:hover,
.shop-header .header-action:focus {
    color: var(--header-primary);
    border-color: rgba(99, 102, 241, 0.35);
    background: #eef2ff;
}

.shop-header .header-action span:not(.action-badge) {
    display: none;
}

.shop-header .action-badge {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--header-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    border: 2px solid #fff;
}

.shop-header .header-menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    padding: 0;
    box-shadow: none !important;
}

.shop-header .shop-menu {
    flex-basis: 100%;
    order: 5;
}

.shop-header .shop-menu .navbar-nav {
    width: 100%;
    gap: 0.25rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--header-border);
    margin-top: 0.85rem;
}

.shop-header .shop-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--header-dark) !important;
    font-weight: 800;
    border-radius: 7px;
    padding: 0.58rem 0.78rem !important;
    transition: color 0.2s ease, background 0.2s ease;
}

.shop-header .shop-menu .nav-link i {
    font-size: 1.12rem;
}

.shop-header .shop-menu .nav-link:hover,
.shop-header .shop-menu .nav-link.active {
    color: var(--header-primary) !important;
    background: #eef2ff;
}

.shop-header .mobile-search {
    display: flex;
    max-width: none;
    margin-top: 1rem;
}

.header-spacer {
    height: 205px;
}

@media (min-width: 992px) {
    .shop-header .shop-navbar > .container {
        flex-wrap: wrap;
    }

    .shop-header .shop-menu {
        display: flex !important;
    }

    .shop-header .shop-menu .navbar-nav {
        flex-direction: row;
        justify-content: center;
        padding-top: 0.7rem;
    }

    .shop-header .header-action.d-sm-inline-flex {
        width: auto;
        min-width: 76px;
        padding: 0 0.85rem;
        gap: 0.35rem;
    }

    .shop-header .header-action span:not(.action-badge) {
        display: inline;
        font-size: 0.82rem;
        font-weight: 800;
    }
}

@media (max-width: 991.98px) {
    .shop-header .header-service-bar {
        display: none;
    }

    .shop-header .shop-navbar {
        min-height: auto;
        padding: 0.65rem 0;
    }

    .shop-header .shop-navbar > .container {
        gap: 0.65rem;
    }

    .shop-header .shop-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .shop-header .brand-mark {
        width: 42px;
        height: 42px;
    }

    .shop-header .brand-copy strong {
        font-size: 1rem;
    }

    .shop-header .brand-copy small {
        display: none;
    }

    .shop-header .header-actions {
        margin-right: 0;
    }

    .shop-header .header-action,
    .shop-header .header-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .shop-header .shop-menu {
        background: #fff;
        border-top: 1px solid var(--header-border);
        margin-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .shop-header .shop-menu .navbar-nav {
        border-top: 0;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .shop-header .shop-menu .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .header-spacer {
        height: 74px;
    }
}

@media (max-width: 420px) {
    .shop-header .brand-copy strong {
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-header .header-actions {
        gap: 0.25rem;
    }

    .shop-header .header-action,
    .shop-header .header-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .shop-header .header-action i,
    .shop-header .header-menu-toggle .navbar-toggler-icon {
        transform: scale(0.9);
    }
}

.autocomplete-suggestions {
    border: 1px solid var(--border-color);
    border-top: none;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    z-index: 999;
    width: calc(100% - 2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.autocomplete-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-suggestion:hover {
    background-color: #f8fafc;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}
/* --- Additional UI Styles (copied from original index.html) --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'><defs><radialGradient id='a' cx='50%' cy='50%' r='50%'><stop offset='0%' stop-color='rgba(255,255,255,0.1)'/><stop offset='100%' stop-color='rgba(255,255,255,0)'/></radialGradient></defs><circle cx='200' cy='200' r='100' fill='url(%23a)'/><circle cx='800' cy='300' r='150' fill='url(%23a)'/><circle cx='400' cy='700' r='120' fill='url(%23a)'/></svg>");
    opacity: 0.3;
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-color);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
}
.integration-card,
.table-container {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.integration-card { border-left: 4px solid var(--primary-color); }
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-active { background:#dcfce7; color:#166534; }
.status-pending { background:#fef3c7; color:#92400e; }
.stats-section { background: var(--light-color); padding: 80px 0; }
.stat-item { text-align:center; padding:2rem; }
.stat-number { font-size:3rem; font-weight:700; color:var(--primary-color); display:block; }
.product-card { background:#fff; border-radius:15px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-5px); }
.product-image { width:100%; height:200px; background:linear-gradient(45deg,#f0f9ff,#e0e7ff); display:flex; align-items:center; justify-content:center; font-size:3rem; color:var(--primary-color); position: relative; }
.wishlist-icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}
.wishlist-icon-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wishlist-icon-btn .fa-heart.fas {
    color: #dc3545; /* Red when active */
}
.badge-free { position:fixed; top:20px; right:20px; z-index:1000; font-size:0.9rem; padding:8px 15px; border-radius:20px; animation:pulse 2s infinite; }
@keyframes pulse { 0%{transform:scale(1);} 50%{transform:scale(1.05);} 100%{transform:scale(1);} }
.stats-section .row > div { margin-bottom:1.5rem; }
@media (max-width:768px) {
    .hero-section { padding:60px 0; }
    .section-title { font-size:2rem; }
    .product-card {
        margin-bottom: 1.5rem;
    }
    .hero-section {
        padding: 80px 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .section-title {
        font-size: 3.5rem;
    }
}

 aside.namads ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: end;
}

 aside.namads ul li {
    max-width: 80px;
    padding: 5px;
    margin-right: 10px;
    background: var(--color-light2);
    border-radius: 10px;
}



/* استایل‌های جذاب برای لوگوی سایت */
.shop-brand img {
    max-height: 55px; /* ارتفاع استاندارد لوگو در هدر */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* یک سایه خیلی نرم */
}

/* افکت بزرگ‌نمایی ملایم وقتی ماوس میره روی لوگو */
.shop-brand:hover img {
    transform: scale(1.08);
}

/* اگر لوگوی شما متن مشکی دارد، در حالت دارک مود به صورت خودکار روشن‌تر می‌شود */
[data-bs-theme="dark"] .shop-brand img {
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.05));
    /* اگر لوگوت تو حالت تاریک دیده نمیشه، خط زیر رو از کامنت دربیار */
    filter: brightness(0) invert(1); 
}