/* فروشگاه صفحه */
.shop-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.603), rgba(10, 10, 14, 0.9)),
        url('https://assets.originrealms.com/cdn-cgi/image/format=webp,quality=90,fit=scale-down,width=1920/2020/07/Enchanting.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(10, 10, 10, 0.2);
}

.shop-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* جستجوی پیشرفته */
.advanced-search {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
}

.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 186, 0, 0.3);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 186, 0, 0.3);
}

#shop-search {
    flex: 1;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--light);
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 1rem;
}

#shop-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#shop-search:focus {
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-light);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 45, 0.95);
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 186, 0, 0.2);
    border-top: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background: rgba(255, 186, 0, 0.1);
    color: var(--primary-light);
}

.suggestion-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* دسته‌بندی‌های جدید */
.shop-categories {
    padding: 60px 0;
    background: rgba(15, 15, 25, 0.8);
}

.categories-header {
    text-align: center;
    margin-bottom: 40px;
}

.categories-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.categories-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 186, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 186, 0, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.category-card:hover .category-icon {
    background: rgba(255, 186, 0, 0.2);
    transform: scale(1.1);
}

.category-title {
    text-align: center;
}

.category-title h3 {
    color: var(--primary-light);
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.category-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.category-hover {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #000;
    padding: 13px;
    text-align: center;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.category-card:hover .category-hover {
    bottom: 0;
}

/* استایل جدید بخش محصولات */
.category-products {
    padding: 60px 0;
    background: rgba(20, 20, 30, 0.9);
    display: none;
}

.category-products.active {
    display: block;
}

.products-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 186, 0, 0.2);
}

.products-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.products-header h2 i {
    font-size: 1.5rem;
}

.products-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.wynn-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* استایل جدید برای باکس پیام پرداخت */
.payment-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(15, 15, 25, 0.95);
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.payment-message h3 {
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.payment-message p {
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.payment-message .btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.payment-message .btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* استایل‌های جدید برای کارت محصول */
.wynn-product-card {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 186, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wynn-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.product-image-container {
     display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 25, 0.3);
    position: relative;
    overflow: hidden;
}

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

.wynn-product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-price-container {
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-price::before {
    content: "تومان";
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.product-actions {
    margin-top: auto;
}

 .btn-buy {
            position: relative;
            overflow: hidden;
            width: 100%;
            background: linear-gradient(135deg, var(--primary), var(--yellow));
            color: #000;
            border: none;
            padding: 14px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 800;
            transition: all 0.3s ease;
            font-family: 'Yekan Bakh', sans-serif;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(255, 186, 0, 0.3);
        }

        .btn-buy:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 186, 0, 0.5);
        }

        .btn-buy:active {
            transform: scale(0.98);
        }


/* نسخه موبایل */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .category-card {
        height: 180px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .category-icon i {
        font-size: 2rem;
    }

    .category-title h3 {
        font-size: 1.2rem;
    }

    .category-title p {
        font-size: 0.85rem;
    }

    .category-hover {
        padding: 12px;
        font-size: 0.9rem;
    }

    .wynn-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-message {
        width: 85%;
        padding: 20px;
    }
    
    .payment-message h3 {
        font-size: 1.2rem;
    }
}

/* استایل مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    margin: 5% auto;
    padding: 25px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 15px;
}

.close:hover {
    color: var(--primary);
}

.modal-product {
    display: flex;
    gap: 25px;
    flex-direction: row;
}

.modal-product-image {
    flex: 1;
}

.modal-product-image img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid rgba(255, 186, 0, 0.3);
}

.modal-product-details {
    flex: 2;
}

.modal-product-details h2 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 25px;
}

.modal-features {
    margin-bottom: 25px;
}

.modal-features h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-has {
    color: #4CAF50;
}

.feature-not {
    color: #F44336;
    text-decoration: line-through;
}

.modal-actions h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.receipt-options {
    margin-bottom: 20px;
}

.receipt-options label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.receipt-options input {
    margin-left: 8px;
}

.gift-fields {
    margin-bottom: 20px;
}

.gift-fields input,
.gift-fields textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 186, 0, 0.3);
    border-radius: 5px;
    color: var(--light);
    font-family: 'Yekan Bakh', sans-serif;
}

.gift-fields textarea {
    height: 80px;
    resize: vertical;
}

.btn-confirm-buy {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--yellow));
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-confirm-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 186, 0, 0.5);
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-product {
        flex-direction: column;
    }
    
    .modal-product-image {
        margin-bottom: 20px;
    }
}