/* استایل‌های پیشرفته صفحه تمام محصولات */
.products-page {
    background: #f8fafc;
}

/* Preloader صفحه */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* هیرو سکشن */
.products-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: #cbd5e1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.wave-animation {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" fill="%23f8fafc"/></svg>');
    background-size: 50% 100px;
    animation: wave 25s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.5;
}

.wave:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(25%); }
    100% { transform: translateX(50%); }
}

/* کنترل‌های محصولات */
.products-controls-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-panel {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-filters:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.advanced-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-row {
    display: flex;
    gap: 1rem;
}

.search-input-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.filters-panel {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filters-panel.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-label {
    font-weight: 600;
    color: #374151;
}

.view-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.results-count .count {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1rem;
}

.results-count .total {
    color: #1e293b;
    font-weight: 600;
}

/* گرید محصولات */
.all-products-section {
    padding: 4rem 0;
}

.products-container {
    transition: all 0.3s ease;
}

/* حالت شبکه‌ای */
.products-container.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* حالت لیستی */
.products-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-container.view-list .product-item {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.products-container.view-list .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.products-container.view-list .product-image {
    flex: 0 0 300px;
    position: relative;
}

.products-container.view-list .product-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-container.view-list .product-footer {
    margin-top: auto;
}

/* کارت محصول */
.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-image {
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .image-container img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-item:hover .overlay-content {
    transform: translateY(0);
}

.quick-view-btn,
.compare-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-view-btn:hover,
.compare-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3b82f6;
}

.product-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
}

.spec-item i {
    color: #3b82f6;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #10b981;
}

.currency {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.price-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

/* بخش بارگذاری بیشتر */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.load-more-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* پیام عدم وجود محصول */
.no-products-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.no-products-illustration {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #94a3b8;
    font-size: 3rem;
}

.no-products-found h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-products-found p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* سایدبار مقایسه */
.compare-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.compare-sidebar.active {
    left: 0;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #1e293b;
    color: white;
}

.compare-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.close-compare {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-compare:hover {
    background: rgba(255, 255, 255, 0.1);
}

.compare-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.compare-actions {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* بخش CTA پیشرفته */
.advanced-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 5rem 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-card .btn {
    min-width: 200px;
}

/* Modal بزرگ */
.modal-content.large {
    max-width: 900px;
}

/* پشتیبانی از تم تاریک */
@media (prefers-color-scheme: dark) {
    .products-page {
        background: #0f172a;
    }
    
    .products-controls-section {
        background: #1e293b;
    }
    
    .search-panel {
        background: #1e293b;
        border-color: #334155;
    }
    
    .search-header h3 {
        color: #f1f5f9;
    }
    
    .search-input {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .filters-panel {
        background: #1e293b;
        border-color: #334155;
    }
    
    .filter-group label {
        color: #e2e8f0;
    }
    
    .filter-select {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .view-controls {
        border-top-color: #334155;
    }
    
    .view-label {
        color: #e2e8f0;
    }
    
    .view-btn {
        background: #1e293b;
        border-color: #334155;
        color: #94a3b8;
    }
    
    .product-item {
        background: #1e293b;
        border-color: #334155;
    }
    
    .product-title {
        color: #f1f5f9;
    }
    
    .product-description {
        color: #94a3b8;
    }
    
    .spec-item {
        color: #cbd5e1;
    }
    
    .product-footer {
        border-top-color: #334155;
    }
    
    .no-products-found {
        background: #1e293b;
        border-color: #334155;
    }
    
    .no-products-found h3 {
        color: #f1f5f9;
    }
    
    .no-products-found p {
        color: #94a3b8;
    }
    
    .compare-sidebar {
        background: #1e293b;
    }
    
    .compare-header {
        background: #0f172a;
    }
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-container.view-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .products-container.view-list .product-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .products-hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .view-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-options {
        justify-content: center;
    }
    
    .products-container.view-list .product-item {
        flex-direction: column;
    }
    
    .products-container.view-list .product-image {
        flex: 0 0 200px;
    }
    
    .compare-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .products-container.view-grid {
        grid-template-columns: 1fr;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .cta-card {
        padding: 2rem 1rem;
    }
}

/* دکمه بازگشت به صفحه اصلی */
.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: right 0.6s ease;
}

.btn-home:hover::before {
    right: 100%;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    gap: 1rem;
}

.btn-home i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-home:hover i {
    transform: scale(1.1);
}

/* دکمه بازگشت شناور برای اسکرول */
.floating-home-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-home-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.floating-home-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-home-btn .tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #1e293b;
}

.floating-home-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* رسپانسیو برای دکمه شناور */
@media (max-width: 768px) {
    .floating-home-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .floating-home-btn .tooltip {
        display: none;
    }
}

/* پشتیبانی از تم تاریک برای دکمه */
@media (prefers-color-scheme: dark) {
    .floating-home-btn .tooltip {
        background: #0f172a;
        border: 1px solid #334155;
    }
    
    .floating-home-btn .tooltip::before {
        border-right-color: #0f172a;
    }
}