/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    direction: rtl;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    flex: 1;
}

.logo-main {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo-sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}

.contact-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.hero-desc {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 500;
    color: #2d3748;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.product-desc {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-options {
    margin-bottom: 1.5rem;
}

.options-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.variant-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.variant-select:focus {
    outline: none;
    border-color: #667eea;
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    background: #f8fafc;
    border: none;
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.qty-btn:active {
    background: #cbd5e0;
    transform: scale(0.95);
}

.qty-minus {
    border-left: none;
    border-right: 1px solid #e2e8f0;
}

.qty-plus {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem 0.25rem;
    border: none;
    outline: none;
    text-align: center;
    font-weight: 500;
    background: white;
    font-size: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.add-to-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 140px;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* Cart Summary */
.cart-summary {
    background: #f7fafc;
    padding: 2rem 0;
    border-top: 3px solid #667eea;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-align: center;
}

.cart-items {
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.empty-cart {
    text-align: center;
    color: #718096;
    padding: 2rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.item-variant {
    font-size: 0.85rem;
    color: #718096;
}

.item-quantity {
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.item-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.totals {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.total-final {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.shipping-note {
    background: #e6fffa;
    color: #234e52;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* Coupon Section */
.coupon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.coupon-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-coupon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-coupon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.coupon-message {
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.coupon-message.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.coupon-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.discount-row {
    color: #22543d;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.discount-row span:last-child {
    color: #38a169;
}

/* Customer Form */
.customer-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.customer-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    direction: rtl;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72,187,120,0.3);
}

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

/* View Cart Button */
.view-cart-container {
    text-align: center;
    margin: 2rem 0;
}

.view-cart {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237,137,54,0.3);
}

/* Testimonials Section */
.testimonials-section {
    background: #f7fafc;
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.star {
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: #2d3748;
    font-size: 1rem;
}

.author-location {
    color: #718096;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.answer-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-link {
    color: #81e6d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4fd1c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

.footer-bottom p {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.footer-bottom p:hover {
    color: #cbd5e0;
}

#admin-access {
    animation: fadeIn 0.3s ease;
}

#admin-access a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

#admin-access a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    transform: translateY(-1px);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

.floating-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102,126,234,0.5);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid white;
    min-width: 24px;
}

.cart-count.hidden {
    display: none;
}

/* Toast Notification */
#toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    direction: rtl;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .feature {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart {
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
    
    #toast {
        left: 1rem;
        right: 1rem;
        transform: none;
        top: 70px;
    }
    
    .floating-cart {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cart-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .summary-card,
    .customer-form {
        margin: 0 -0.5rem;
        border-radius: 0;
    }
    
    .testimonials-section,
    .faq-section {
        padding: 2rem 0;
    }
    
    .testimonials-grid,
    .faq-grid {
        margin-top: 2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header, .footer, .btn-primary, .add-to-cart {
        display: none !important;
    }
}