@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

body {
    direction: initial;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fed700;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Saudi Discount Banner */
.saudi-discount-banner {
    background: linear-gradient(135deg, #006400, #008000);
    color: white;
    padding: 15px;
    text-align: center;
    margin: 15px auto;
    border-radius: 12px;
    border: 3px solid gold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 1200px;
    width: 95%;
}

.saudi-discount-banner h2 {
    margin: 0;
    font-size: 1.5em;
    color: gold;
}

.saudi-discount-banner .coupon-code {
    background: gold;
    color: #006400;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: bold;
    margin: 8px 0;
    display: inline-block;
}

.saudi-discount-banner p {
    margin: 5px 0;
    font-size: 1em;
}

/* RTL Specific Adjustments */
.heading {
    text-align: right;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 15px;
}

.heading h1 {
    font-size: 1.7em;
    margin-bottom: 12px;
    color: #000;
}

.heading p {
    font-size: 1em;
    line-height: 1.5;
    color: #333;
}

/* Horizontal Scroll Container */
.products-scroll-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #000 #fed700;
}

.products-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.products-scroll-container::-webkit-scrollbar-track {
    background: #fed700;
    border-radius: 10px;
}

.products-scroll-container::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 10px;
}

.all-cards {
    display: flex;
    gap: 15px;
    padding: 10px 0px;
    width: max-content;
    min-width: 100%;
}

/* Product Card - FIXED MOBILE LAYOUT */
.card {
    text-align: right;
    background: #fed700;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    width: 220px;
    min-width: 220px;
    height: 420px;
    flex-shrink: 0;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.saudi-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #006400;
    color: gold;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    border: 1px solid gold;
    z-index: 2;
}

.coupon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d40000;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    border: 1px solid white;
    z-index: 2;
}

/* Product Image Container */
.img-container {
    background: white;
    border-radius: 8px;
    padding: 6px;
    margin: 5px 0 8px 0;
    border: 1px solid #000;
    flex-shrink: 0;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    border-radius: 6px;
    display: block;
    height: 100%;
    object-fit: cover;
}

/* Product Name - ARABIC TEXT */
.name {
    text-align: right;
    margin: 0 0 5px 0;
    color: #000;
    height: 45px;
    display: flex;
    align-items: flex-start;
}

.name p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.3;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.name p:hover {
    color: #006400;
}

/* Price Section */
.price {
    text-align: right;
    margin: 0 0 8px 0;
    padding: 0;
}

.discounted-price {
    color: #d40000;
    font-weight: bold;
    font-size: 1.2em;
    margin: 3px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.85em;
    margin: 2px 0;
}

.savings-text {
    color: #006400;
    font-weight: bold;
    margin: 3px 0 0 0;
    font-size: 0.8em;
}

.discount-percent {
    background: #d40000;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7em;
    border: 1px solid white;
}

/* Stars Rating */
.prod-stars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 12px 0;
    padding: 0;
}

.stars {
    direction: ltr;
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.8em;
}

.rating-text {
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
}

/* Buy Button */
.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fed700;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    border: 2px solid #000;
    transition: all 0.3s ease;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
    width: 100%;
    min-height: 42px;
}

.buy-button:hover {
    background: #333;
    color: #fff;
    transform: scale(1.03);
}

/* Small Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.popup-content {
    background: #fed700;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 8px;
    left: 12px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-title {
    color: #000;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: bold;
    padding: 0 20px;
}

.popup-description {
    color: #333;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.popup-coupon-section {
    background: rgba(0, 100, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    border: 2px dashed #006400;
}

.popup-coupon-code {
    background: #006400;
    color: gold;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    margin: 8px 0;
    display: inline-block;
    border: 2px solid gold;
}

.copy-btn {
    background: #000;
    color: #fed700;
    border: none;
    padding: 7px 12px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px 0;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.copy-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.copy-message {
    color: #006400;
    font-size: 0.85em;
    margin: 5px 0;
    font-weight: bold;
}

.popup-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #d40000;
    margin: 12px 0;
}

.popup-original-price {
    font-size: 1em;
    color: #666;
    text-decoration: line-through;
    margin: 5px 0;
}

/* Form Styles */
.popup-form {
    margin: 12px 0;
    text-align: right;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
    font-size: 0.85em;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #006400;
    box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.2);
}

.popup-checkout-btn {
    background: #006400;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.popup-checkout-btn:hover {
    background: #008000;
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.scroll-indicator i {
    margin: 0 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-5px);
    }
    60% {
        transform: translateX(-3px);
    }
}

/* Info Popup Styles */
.package-description {
    text-align: right;
    margin: 20px 0;
}

.description-section {
    background: #fed700;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #000;
}

.description-section h4 {
    color: #006400;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.steps-section {
    background: #fed700;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px dashed #006400;
}

.steps-section h4 {
    color: #000;
    margin: 0 0 15px 0;
    text-align: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f3d200;
    border-radius: 8px;
    border-right: 4px solid #fed700;
}

.step-number {
    background: #006400;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h5 {
    color: #000;
    margin: 0 0 5px 0;
    font-size: 1em;
}

.step-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9em;
}

.features-section {
    background: #f3d200;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #000;
}

.features-section h4 {
    color: #006400;
    margin: 0 0 10px 0;
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.9em;
}

.features-section li:last-child {
    border-bottom: none;
}

.additional-info {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #ffeaa7;
}

.additional-info h4 {
    color: #856404;
    margin: 0 0 10px 0;
}

.additional-info p {
    color: #856404;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.buy-now-btn {
    background: #006400;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 120px;
}

.buy-now-btn:hover {
    background: #008000;
    transform: scale(1.05);
}

.live-chat-btn {
    background: #000;
    color: #fed700;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-chat-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* Tablet View */
@media screen and (max-width: 1024px) {
    .card {
        width: 200px;
        min-width: 200px;
        height: 370px;
    }
    
    .img-container {
        height: 140px;
    }
    
    .discounted-price {
        font-size: 1.1em;
    }
}

/* Mobile View - Show 2 products */
@media screen and (max-width: 768px) {
    .heading {
        width: 95%;
        padding: 10px;
    }
    
    .heading h1 {
        font-size: 1.4em;
    }
    
    .heading p {
        font-size: 0.9em;
    }
    
    .saudi-discount-banner {
        margin: 10px auto;
        padding: 12px;
    }
    
    .saudi-discount-banner h2 {
        font-size: 1.2em;
    }
    
    .saudi-discount-banner .coupon-code {
        font-size: 1.1em;
        padding: 6px 12px;
    }
    
    .products-scroll-container {
        width: 98%;
        padding: 10px;
    }
    
    .all-cards {
        gap: 12px;
    }
    
    .card {
        width: calc(50vw - 30px);
        min-width: calc(50vw - 30px);
        height: 340px;
        padding: 10px;
    }
    
    .img-container {
        height: 90px;
        margin: 5px 0 6px 0;
    }
    
    .name {
        margin: 0 0 4px 0;
        height: 42px;
    }
    
    .name p {
        font-size: 0.85em;
    }
    
    .price {
        margin: 0 0 6px 0;
    }
    
    .discounted-price {
        font-size: 1em;
        margin: 2px 0;
    }
    
    .prod-stars {
        margin: 6px 0 10px 0;
    }
    
    .buy-button {
        padding: 9px;
        font-size: 0.85em;
        min-height: 40px;
    }
    
    .popup-content {
        padding: 15px;
        margin: 10px;
        max-width: 95%;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .buy-now-btn,
    .live-chat-btn {
        width: 100%;
    }
}

/* Small Mobile View */
@media screen and (max-width: 480px) {
    .card {
        width: calc(50vw - 25px);
        min-width: calc(50vw - 25px);
        height: 375px;
        padding: 8px;
    }
    
    .saudi-badge,
    .coupon-badge {
        font-size: 0.65em;
        padding: 3px 6px;
    }
    
    .img-container {
        height: 140px;
        padding: 4px;
        margin: 4px 0 5px 0;
    }
    
    .name {
        height: 40px;
        margin: 0 0 3px 0;
    }
    
    .name p {
        font-size: 0.8em;
    }
    
    .discounted-price {
        font-size: 0.95em;
        margin: 2px 0;
    }
    
    .original-price {
        font-size: 0.8em;
        margin: 1px 0;
    }
    
    .savings-text {
        font-size: 0.75em;
        margin: 2px 0 0 0;
    }
    
    .prod-stars {
        margin: 5px 0 8px 0;
    }
    
    .stars i {
        font-size: 0.75em;
    }
    
    .rating-text {
        font-size: 0.75em;
    }
    
    .buy-button {
        padding: 8px;
        font-size: 0.8em;
        min-height: 38px;
    }
    
    .popup-content {
        padding: 12px;
        margin: 5px;
        max-width: 98%;
    }
}
    .text-all {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .text {
        background: rgba(255, 255, 255, 0.95);
        padding: 30px;
        border-radius: 15px;
        border: 2px solid #000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .text p {
        color: #333;
        line-height: 1.8;
        margin-bottom: 25px;
        font-size: 1.1em;
        text-align: right;
    }
    
    .text h2 {
        color: #006400;
        margin: 35px 0 20px 0;
        font-size: 1.5em;
        border-right: 4px solid #fed700;
        padding-right: 15px;
        text-align: right;
    }
    
    .reviews-section {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        padding: 25px;
        border-radius: 12px;
        margin: 30px 0 0 0;
        text-align: center;
        border: 2px dashed #006400;
    }
    
    .reviews-section h3 {
        color: #006400;
        margin: 0 0 15px 0;
        font-size: 1.3em;
    }
    
    .reviews-section p {
        color: #666;
        margin: 0 0 20px 0;
        text-align: center;
    }
    
    .reviews-btn {
        background: #006400;
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 25px;
        font-weight: bold;
        font-size: 1.1em;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid #000;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    
    .reviews-btn:hover {
        background: #008000;
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    @media (max-width: 768px) {
        .text {
            padding: 20px;
        }
        
        .text p {
            font-size: 1em;
            line-height: 1.7;
        }
        
        .text h2 {
            font-size: 1.3em;
        }
        
        .reviews-btn {
            padding: 12px 25px;
            font-size: 1em;
            width: 100%;
            justify-content: center;
        }
    }
    .text-all {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text {
    background: transparent;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #006400;
    box-shadow: 0 5px 20px rgba(0, 100, 0, 0.2);
}

.text p {
    color: #000;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1em;
    text-align: right;
    font-weight: 500;
}

.text h2 {
    color: #006400;
    margin: 35px 0 20px 0;
    font-size: 1.5em;
    border-right: 4px solid #d40000;
    padding-right: 15px;
    text-align: right;
    background: linear-gradient(45deg, #006400, #008000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-section {
    background: rgba(0, 100, 0, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0 0 0;
    text-align: center;
    border: 2px solid #006400;
    backdrop-filter: blur(10px);
}

.reviews-section h3 {
    color: #006400;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reviews-section p {
    color: #000;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 500;
}

.reviews-btn {
    background: linear-gradient(135deg, #006400, #008000);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

.reviews-btn:hover {
    background: linear-gradient(135deg, #008000, #00a000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
}

.text-heading h1 {
    color: #006400;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #006400, #d40000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .text {
        padding: 20px;
        border: 2px solid #006400;
    }
    
    .text p {
        font-size: 1em;
        line-height: 1.7;
        color: #000;
    }
    
    .text h2 {
        font-size: 1.3em;
        border-right: 3px solid #d40000;
    }
    
    .reviews-btn {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }
    
    .text-heading h1 {
        font-size: 1.6em;
    }
}
    </style>
</style>    