/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 28px;
    color: #1a5490;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.shipping-badge {
    background-color: #ff6b6b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    animation: pulse 2s infinite;
}

.shipping-badge h2 {
    font-size: 18px;
    font-weight: bold;
}

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

.product-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.price-section {
    text-align: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 42px;
    font-weight: bold;
    color: #ffd700;
    margin-left: 15px;
}

.old-price {
    font-size: 28px;
    text-decoration: line-through;
    color: #ddd;
    margin-left: 15px;
}

.discount-badge {
    background-color: #ff4444;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
}

.rating {
    text-align: center;
    margin-bottom: 20px;
}

.stars {
    font-size: 24px;
    margin-left: 10px;
}

.reviews {
    font-size: 16px;
    color: #ddd;
}

.trending-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Countdown Timer */
.countdown-section {
    margin: 30px 0;
}

.countdown-label {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.time-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
}

.time {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
}

.label {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

/* CTA Button */
.cta-button {
    display: block;
    background-color: #ff6b6b;
    color: white;
    text-align: center;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    margin: 30px auto;
    max-width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Features Row */
.features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
}

.feature-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 16px;
}

/* Product Image */
.product-image {
    text-align: center;
    margin: 40px 0;
}

.product-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Why Section */
.why-section {
    background-color: white;
    padding: 60px 0;
}

.why-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a5490;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.benefit-card img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
}

.benefit-card h3 {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

/* How it Works Section */
.how-it-works {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.work-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.work-content img {
    flex: 1;
    width: 100%;
    max-width: 500px;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 15px;
}

.work-description {
    flex: 1;
    min-width: 300px;
}

.work-description h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a5490;
}

.work-description ul {
    list-style: none;
    padding: 0;
}

.work-description li {
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.work-description li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-left: 10px;
}

.work-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.work-images img {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Reviews Section */
.reviews-section {
    background-color: white;
    padding: 60px 0;
}

.reviews-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a5490;
}

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

.review-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.review-card img {
    width: 100%;
    max-width: 250px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
}

.review-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a5490;
}

.review-card .stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.review-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Checkout Section */
.checkout-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.checkout-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #1a5490;
}

.checkout-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Error State */
.form-group input.error,
.form-group select.error {
    border-color: #ff4444;
    background-color: #fff5f5;
}

/* Loading State */
.submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.submit-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Order Summary */
.order-summary {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.order-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a5490;
}

.order-summary table {
    width: 100%;
    margin-bottom: 30px;
}

.order-summary table th,
.order-summary table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.order-summary table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.total-row {
    font-weight: bold;
    font-size: 18px;
}

.payment-method {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-method label {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    margin-left: 10px;
    width: 20px;
    height: 20px;
}

.payment-note {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.privacy-note {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.submit-button {
    width: 100%;
    background-color: #4caf50;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-header h1 {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 32px;
    }
    
    .old-price {
        font-size: 22px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-box {
        min-width: 80px;
        padding: 15px;
    }
    
    .time {
        font-size: 28px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .work-content {
        flex-direction: column;
    }
    
    .features-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .shipping-badge h2 {
        font-size: 14px;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    .checkout-form {
        padding: 20px;
    }
}
