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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tagline {
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.card-preview {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.teaser-box {
    margin-bottom: 25px;
}

.teaser {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #2c3e50;
    font-style: italic;
}

.price-box {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
}

.currency {
    font-size: 1rem;
    opacity: 0.9;
    margin-left: 5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag {
    background: #ecf0f1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.purchase-form {
    margin-top: 25px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85rem;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.postcard {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.postcard-image {
    width: 100%;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.postcard-image img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.postcard-content {
    padding: 30px;
}

.postcard-teaser {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-style: italic;
}

.postcard-story {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    margin-bottom: 25px;
}

.postcard-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-id {
    color: #999;
    font-size: 0.85rem;
    margin-top: 10px;
}

.pending-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.pending-box h2 {
    color: #f39c12;
    margin-bottom: 15px;
}

.pending-box p {
    color: #666;
    margin-bottom: 10px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-style: italic;
}

.error-heading {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message {
    color: #666;
    margin-bottom: 20px;
}

#error-state {
    text-align: center;
    padding: 40px 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #999;
    font-size: 1rem;
}

footer .footer-shop {
    margin-bottom: 8px;
}

footer .footer-tagline {
    font-style: italic;
}

.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.language-selector select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.language-selector select:hover {
    border-color: #667eea;
}

.language-selector select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .teaser {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
}

/* RTL Support for Arabic */
html[dir="rtl"] .language-selector {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .currency {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="rtl"] .tags {
    direction: rtl;
}

@media (max-width: 480px) {
    html[dir="rtl"] .language-selector {
        left: 10px;
        right: auto;
    }
}
