﻿/* Modern VidaMehr Website Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(45deg, #ff6b6b, #ee5a24);
    --accent-color: #ffd700;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: rgba(255,255,255,0.9);
    --bg-overlay: rgba(0,0,0,0.1);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 6px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    --transition: all 0.3s ease;
}

/* Modern Header Styles */
.modern-header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: var(--bg-overlay);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-info {
    color: var(--text-light);
    font-size: 14px;
}

.date-info i {
    margin-left: 8px;
    color: var(--accent-color);
}

.top-actions {
    text-align: left;
}

.top-actions .btn {
    margin-left: 8px;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    transition: var(--transition);
}

.top-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background: transparent;
}

.logo-section {
    text-align: right;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Search Section */
.search-section {
    padding: 0 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.action-btn {
    position: relative;
    background: rgb(159 147 147 / 62%);
    border: 1px solid #8c7272;
    box-shadow: 0px 0px 7px 1px #d4d4d480;
    color: white;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    z-index: 10;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn i {
    font-size: 18px;
    pointer-events: none;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Navigation */
.main-navigation {
    background: var(--bg-overlay);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-wrapper {
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-link i {
    margin-left: 8px;
    font-size: 16px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), #ffed4e);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}




/* Blinking animation for notifications */
.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Loading Spinner */
.modern-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Improved Focus States */
.action-btn:focus,
.btn-modern:focus,
.modern-form-input:focus,
.search-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
/*    .top-bar {
        display: none;
    }
*/
  

/*    .action-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
        min-width: 50px;
        background: rgba(255,255,255,0.3);
        border: 2px solid rgba(255,255,255,0.1);
        font-size: 20px;
        cursor: pointer;
        pointer-events: auto;
        z-index: 1001;
        position: relative;
    }

    .action-btn:hover,
    .action-btn:focus,
    .action-btn:active {
        background: rgba(255,255,255,0.4);
        transform: scale(0.95);
        box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    }

    .action-btn i {
        font-size: 20px;
    }*/

    /* Mobile Navigation - Bottom Menu */
 
}

/* Hide mobile tab bar on desktop */
@media (min-width: 768px) {
  
}

/* Add padding to body for mobile tab bar */
@media (max-width: 767px) {
   
}








/* استایل‌های مینیمال برای کارت محصول */
.product-card {
/*    background: white;*/
/*    border-radius: 12px;*/
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
/*    border: 1px solid #f0f0f0;*/
    height: 100%;
    display: flex;
    flex-direction: column;
/*    margin: 8px;*/
}
.product-wrapper{
    height:100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    /*        border-color: #e0e0e0;*/
}

    .product-card .product-image-container {
        position: relative;
        overflow: hidden;
/*        background: #f8f9fa;*/
/*        aspect-ratio: 1;*/
    }

    .product-card .product-image {
        width: 100%;
        height: 175px;
        object-fit: cover;
        transition: transform 0.3s ease;
        border-radius: 11px;
        border: 2px solid #836f6f;
    }

    .product-card .product-card:hover .product-image {
        transform: scale(1.05);
    }

    .product-card .product-status-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        z-index: 2;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .product-card .status-available {
        background: rgba(39, 174, 96, 0.9);
        color: white;
    }

    .product-card .status-coming-soon {
        background: rgba(243, 156, 18, 0.9);
        color: white;
    }

    .product-card .status-unavailable {
        background: rgba(231, 76, 60, 0.9);
        color: white;
    }

    .product-card .product-content {
        padding: 8px 7px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .product-card .product-category {
/*        color: #666;*/
        font-size: 12px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.product-card .product-title {
    font-size: .8rem !important;
    font-weight: 600;
    /*        color: #1a1a1a;*/
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

        .product-card .product-title:hover {
/*            color: #007bff;*/
            text-decoration: none;
        }

    .product-card .product-description {
        /*        color: #666;*/
        font-size: .68rem;
        line-height: 1.5;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

    .product-card .product-price-section {
        border-top: 1px solid #a8727291;
        padding-top: 5px;
        margin-top: auto;
    }

    .product-card .price-label {
/*        color: #666;*/
/*        font-size: 12px;*/
        margin-bottom: 4px;
    }

    .product-card .current-price {
/*        font-size: 14px;*/
        font-weight: 700;
/*        color: #1a1a1a;*/
        margin-bottom: 4px;
    }

    .product-card .original-price {
/*        font-size: 12px;*/
        text-decoration: line-through;
        color: #999;
        margin-right: 8px;
    }

    .product-card .discount-badge {
        background: #dc3545;
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 500;
    }

/*done------------------*/

.category-card-v2 {
    position: relative;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f0f0f;
    transition: all .4s ease;
}

    .category-card-v2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

    .category-card-v2::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,0,0,.85), rgba(0,0,0,.2) );
    }

    .category-card-v2 .content {
        position: absolute;
        bottom: 0;
        z-index: 2;
        padding: 20px;
    }

    .category-card-v2 h6 {
        color: #fff;
        margin-bottom: 6px;
        font-size: 1rem;
        font-weight: 600;
    }

    .category-card-v2 p {
        color: #d1d1d1;
        font-size: .85rem;
        line-height: 1.6;
        margin: 0;
    }

    .category-card-v2:hover img {
        transform: scale(1.12);
    }

    .category-card-v2:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(0,0,0,.45);
    }
