﻿.auth-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.success-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.success-box {
    background-color: #25374E;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    text-align: center;
    color: #fff;
}

.success-icon {
    width: 80px;
    margin-bottom: 20px;
}

.success-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #00ff7f;
}

.success-message {
    color: #ccc;
    margin-bottom: 20px;
}

.redirect-text {
    color: #ccc;
    font-size: 0.95rem;
}



.card-confirm {
    background: #f8f9fa;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-confirm img {
        width: 80px;
        margin-bottom: 20px;
    }

    .card-confirm h2 {
        font-weight: 700;
        margin-bottom: 15px;
        color: #007bff;
        font-size: 1.6rem;
    }

    .card-confirm p {
        color: #555;
        margin-bottom: 25px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .card-confirm .resend {
        color: #555;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

        .card-confirm .resend a {
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

    .card-confirm .btn {
        font-weight: 600;
        border-radius: 8px;
        padding: 10px 25px;
        font-size: 0.95rem;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    /* Hover effects */
    .card-confirm:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    .card-confirm .resend a:hover {
        color: #0056b3;
    }



/* Shop All Products */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1f2937;
    padding-top: 80px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 40px;
    padding-bottom: 1rem;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 60px 0 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s ease;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        font-weight: 600;
        color: #374151;
        font-size: 0.95rem;
    }

    .filter-group select,
    .filter-group input {
        padding: 12px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 1rem;
        background: #f9fafb;
        transition: all 0.3s ease;
    }

        .filter-group select:focus,
        .filter-group input:focus {
            outline: none;
            border-color: #3b82f6;
            background: white;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
        }

.filter-btn {
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(27, 36, 50, 0.3);
    }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
    animation: fadeIn 1s ease;
}

/* Product Card - Matching Home Page Style */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-images-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .image-dot.active {
        background: #3b82f6;
        width: 20px;
        border-radius: 3px;
    }

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

.sales-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 2;
}

.favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

    .favorite-btn:hover {
        transform: scale(1.1);
        background: #fee;
    }

    .favorite-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #ef4444;
        stroke-width: 2;
        transition: all 0.3s ease;
    }

    .favorite-btn.active svg {
        fill: #ef4444;
    }

.product-info {
    padding: 0 4px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.price-container {
    display: flex;
    align-items: baseline; /* يخلّي الـ new-price يتماشى مع baseline القديم */
    gap: 12px; /* مسافة أفضل بين السعرين */
    margin-bottom: 16px;
    justify-content: center; /* يظلوا في النص */
    flex-wrap: wrap; /* يحمي التصميم على الشاشات الصغيرة */
}

.old-price {
    font-size: 1rem;
    color: #9ca3af; /* رمادي خفيف */
    text-decoration: line-through;
    transition: color 0.3s ease; /* تأثير عند hover ممكن تضيفه */
}

.new-price {
    font-size: 1.5rem;
    color: #111827; /* لون أغمق لزيادة الوضوح */
    font-weight: 700;
}

.product-cta {
    width: 100%;
    background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    text-align: center;
}

    .product-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        transition: left 0.6s ease;
    }

    .product-cta:hover::before {
        left: 100%;
    }

    .product-cta:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #34425a 0%, #1f2938 100%);
        box-shadow: 0 10px 24px rgba(27, 36, 50, 0.45);
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 6.5rem 0;
    animation: fadeInUp 1s ease;
}

    .pagination button {
        padding: 12px 20px;
        border: 2px solid #e5e7eb;
        background: white;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 50px;
    }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination button:hover:not(:disabled):not(.active) {
            border-color: #3b82f6;
            color: #3b82f6;
            transform: translateY(-2px);
        }

        .pagination button.active {
            background: linear-gradient(135deg, #2a3446 0%, #1b2432 100%);
            color: white;
            border-color: transparent;
        }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
