:root {
    --primary-blue: #1C8CCB;
    --primary-green: #599E5F;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --font-family: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container for fixed width layout similar to mobile/tablet view in images */
.main-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding-bottom: 20px;
}

/* Header */
.product-header {
    text-align: right;
    padding: 20px 15px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-weight: bold;
}

.product-price .currency {
    font-size: 0.9em;
}

.tax-note {
    font-size: 0.8rem;
    color: #999;
}

/* Product Image */
.product-image-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    /* Slight roundness */
}

/* Details Section */
.product-details {
    padding: 0 20px;
    text-align: right;
    margin-bottom: 30px;
}

.description-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
}

.features-list li {
    margin-bottom: 15px;
}

/* Purchase Card */
.purchase-card {
    background-color: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 0 20px 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.price-large {
    color: #FF0000;
    /* Red price in the card as per 2nd image */
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.btn-buy {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-buy:hover {
    background-color: #157ab0;
}

.tag-container {
    display: flex;
    justify-content: flex-end;
    /* Align right */
}

.tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Pattern Divider */
.pattern-divider {
    height: 40px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwIDAgQzUgNSAxNSAxNSAxMCAyMCBDNSAxNSAxNSA1IDEwIDBaIiBmaWxsPSIjZjRmNmY3IiAvPjwvc3ZnPg==');
    /* Subtle leaf pattern placeholder */
    background-repeat: repeat-x;
    background-size: 30px;
    opacity: 0.5;
    margin-bottom: 20px;
}

/* Footer Header Line */
.site-footer {
    /* Removed border-top here to use the new component's border */
    background-color: #fafafa;
    /* Very light subtle background pattern area */
    /* padding: 40px 20px 100px; - Let component handle padding */
    width: 100%;
}

/* .footer-content was removed as it was empty and redefined later */

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    z-index: 1000;
    font-size: 0.95rem;
}

.whatsapp-float i {
    color: #25D366;
    font-size: 1.2rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    /* Hidden by default on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.btn-buy-sticky {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 90px;
    }

    .mobile-sticky-bar {
        display: block;
    }

    .whatsapp-float {
        bottom: 80px;
        border-radius: 50px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


/* =============================================================
   NEW FOOTER STYLES (Matches components/footer.html)
   ============================================================= */

/* Main Footer Container */
.main-footer-container {
    background-color: #ffffff;
    padding-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
    text-align: right;
    direction: rtl;
    position: relative;
    width: 100%;
}

/* Green Top Border Line */
.footer-top-border {
    height: 3px;
    background-color: #599E5F;
    width: 100%;
    margin-bottom: 40px;
}

/* Content Wrapper */
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    background: transparent;
    /* Reset */
}

/* == Right Section (Text & Contact) == */
.footer-section.right-section {
    flex: 2;
    min-width: 300px;
}

.footer-heading {
    color: #599E5F;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.footer-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-heading {
    margin-top: 30px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: #599E5F;
    color: #fff;
    border-color: #599E5F;
}

.social-btn i {
    font-size: 1rem;
}

/* == Left Section (QR Code) == */
.footer-section.left-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.qr-container {
    text-align: center;
}

.footer-qr {
    width: 120px;
    height: 120px;
    border: 4px solid #cee4f1;
    /* Light Blue Border */
    padding: 2px;
    margin-bottom: 10px;
    display: block;
}

.qr-text {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f9f9f9;
    color: #bbb;
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section.right-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section.left-section {
        margin-top: 20px;
        width: 100%;
        order: -1;
        /* QR might be better on top? Or bottom. User didn't specify, standard mobile stack usually puts content first. Keeping standard. */
        order: 0;
    }
}