/* Import fonts */
@import url('https://fonts.googleapis.com/css?family=Cairo&display=swap');
.arnumbersrtl{
    direction: ltr!important;
    unicode-bidi: embed;
}

.bg-light {
    background-color: #dcc69d45 !important;
}
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #2A5450;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232A5450' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    min-width: 70px;
}

.custom-select:hover {
    color: #0056b3;
}

.custom-select:focus {
    outline: none;
    box-shadow: none;
}

#currency-select, #user-menu {
    /* Any specific styles for these elements, if needed */
}
/* Body font /*

/* Currency Selector Styles */
#currency-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #2A5450;
    cursor: pointer;
    transition: all 0.3s ease;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232A5450' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    min-width: 70px;
}

#currency-select:hover {
    color: #0056b3;
}

#currency-select:focus {
    outline: none;
    box-shadow: none;
}

/* Language Switch Button Styles */
.language-switch {
    display: inline-block;
    padding: 8px 15px;
    //border: 2px solid #007bff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.language-switch:hover {
    //background-color: #007bff;
    color: white;
}

/* Cart icon and badge styles */
.cart-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-icon {
    font-size: 25px;
    color: #2A5450;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff0000;
    color: #ffffff;
    border-radius: 50%;
    padding: 0.25em 0.6em;
    font-size: 12px;
    font-weight: bold;
}

.cart-badge:empty {
    display: none;
}

/* Layout adjustments for language_currency_bar */
.currency-language-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.currency-language-bar > * {
    margin-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .currency-language-bar {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .currency-language-bar > * {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
/* Site name alignment in navbar */
/* Navbar styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 65px;
    width: auto;
}

.navbar-brand .site-name {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 16px;
    font-weight: normal;
    color:#2a5450;
    max-width: 200px; /* Adjust this value as needed */
}

/* Responsive adjustments for site name */
@media (max-width: 576px) {
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-brand .site-name {
        margin-top: 0.5rem;
        max-width: 100%;
    }
}
/* Kid-friendly Book Card Styles */
.card {
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.book-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d5453;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: none;
    padding: 0.75rem 1.25rem;
}

/* Updated Button Styles */
.btn-primary {
    background-color: #debe7c;
    border-color: #debe7c;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #2d5453;
    border-color: #2d5453;
    color: #ffffff;
}

/* Updated Add to Cart button styles */
.input-group {
    overflow: hidden;
    //box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.quantity-input {
    border: 2px solid #debe7c;
    //border-right: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    color: #2d5453;
}

.details{
    padding: 0.375rem;
}
.btn-primary.add-to-cart {
    background-color: #debe7c;
    border: 2px solid #debe7c;
    color: #2d5453;
    padding: 0.375rem;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary.add-to-cart:hover,
.btn-primary.add-to-cart:focus,
.btn-primary.add-to-cart:active {
    background-color: #2d5453;
    border-color: #2d5453;
    color: #ffffff;
    transform: scale(1.05);
}
.card-footer {
    padding-left: 0;
    padding-right: 0;
}
.big-icon {
    font-size: 1.5rem; /* Adjust this value as needed */
}
.book-image-container {
    overflow: hidden;
}

.book-image {
    transition: transform 0.3s ease;
}

.book-image-container:hover .book-image {
    transform: scale(1.1);
}

/* Footer */
.footer {
    margin-top: 25px;
}
.index-page .footer {
    margin-top: 0;
}
.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-links li {
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(<?php echo ($language=='ar') ? '-5px' : '5px'; ?>);
}

.social-links a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* RTL Support */
[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Footer */