:root {
    --primary-color: #6a1b9a;
    --primary-hover: #4a148c;
    --bg-color: #f9f9f9;
    --text-main: #333;
    --text-light: #777;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.logo {
    max-height: 50px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.product-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease;
    position: sticky;
    top: 40px;
}

.product-image:hover {
    transform: scale(1.02);
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.product-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.advantages-section {
    background-color: #f8f4ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.advantages-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.advantages-list {
    list-style: none;
    margin-bottom: 12px;
}

.advantages-list li {
    font-size: 16px;
    margin-bottom: 8px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advantages-footer {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-top: 15px;
}

.price-container {
    margin-bottom: 30px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.currency {
    font-size: 18px;
    color: var(--text-light);
    margin-right: 5px;
}

.subscription-options {
    margin-bottom: 30px;
}

.subscription-options label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #444;
}

.subscription-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    outline: none;
}

.subscription-select:focus {
    border-color: var(--primary-color);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.btn {
    width: 100%;
    padding: 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 27, 154, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(106, 27, 154, 0.05);
}

.payment-methods {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.payment-icon {
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.features {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
}

/* Reviews Section */
.reviews-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 18px;
}

.star-filled {
    width: 22px;
    height: 22px;
    fill: #FFD700;
    color: #FFD700;
}

.review-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

@media (max-width: 900px) {
    .product-layout {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-image {
        padding: 20px;
        position: static;
        width: 100%;
    }
    
    .price {
        font-size: 32px;
    }
    
    .product-title {
        font-size: 26px;
    }

    .features {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .advantages-title {
        font-size: 18px;
    }
    
    .advantages-list li {
        font-size: 14px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-align: center;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
    background-color: #fcfcfc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

.pay-now-btn {
    margin-top: 15px;
    width: 100%;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 15px;
    border-top: 1px solid #eaeaea;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #888;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #1877f2;
    transform: translateY(-3px);
}

.social-links i {
    width: 28px;
    height: 28px;
}
