/* Main Styling */
:root {
    --primary-color: #f8a1d1;
    --secondary-color: #f5f5f5;
    --accent-color: #e0558a;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gold-color: #d4af37;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Global RTL Settings */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

.text-md-left {
    text-align: right !important;
}

.text-md-right {
    text-align: left !important;
}

.ml-1, .ml-2, .ml-3, .ml-4, .ml-5 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

.mr-1, .mr-2, .mr-3, .mr-4, .mr-5 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

.pl-1, .pl-2, .pl-3, .pl-4, .pl-5 {
    padding-right: 0.25rem !important;
    padding-left: 0 !important;
}

.pr-1, .pr-2, .pr-3, .pr-4, .pr-5 {
    padding-left: 0.25rem !important;
    padding-right: 0 !important;
}

/* Header Styling */
.top-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 10px 0;
}

.top-header a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.top-header a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-header {
    background-color: var(--light-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.site-logo {
    font-family: 'Tajawal', sans-serif;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.site-logo:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.search-box {
    position: relative;
}

.search-box input {
    border-radius: 20px;
    padding-right: 35px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.search-box input:focus {
    box-shadow: 0 0 0 0.2rem rgba(240, 161, 209, 0.25);
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 10px;
    color: #999;
}

.navbar {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(248, 161, 209, 0.1);
    color: var(--accent-color);
}

/* Hero Carousel */
.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: auto;
        max-height: 350px;
    }
    
    .carousel-item img {
        object-fit: contain;
        max-height: 100%;
    }
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.carousel-caption h3 {
    color: var(--light-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    color: var(--light-color);
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
.section-heading {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.section-heading h2 {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 0 20px;
    position: relative;
    z-index: 1;
    color: var(--dark-color);
    font-weight: 700;
}

.section-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 0;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 300px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 20px;
}

.product-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 1rem;
}

.product-card .card-footer {
    background-color: #f9f9f9;
    border-top: none;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--accent-color);
}

/* Newsletter */
.newsletter-section {
    background-color: var(--primary-color);
    padding: 50px 0;
    color: white;
}

.newsletter-form {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    border-radius: 30px;
    padding: 15px 150px 15px 20px;
    border: none;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 30px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--dark-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 0;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 991px) {
    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 300px;
    }
    
    .navbar .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .newsletter-form input {
        padding-right: 20px;
    }
    
    .newsletter-form button {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
}

/* Responsive CSS */
@media (max-width: 991.98px) {
    .top-header {
        font-size: 0.85rem;
    }
    
    .navbar-toggler {
        margin-right: auto;
        margin-left: 0;
    }
    
    .main-header .row {
        margin-bottom: 15px;
    }
    
    .search-box {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .site-logo img {
        max-width: 120px !important;
        margin: 0 auto;
        display: block;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 15px;
        max-width: 90%;
    }
    
    .carousel-caption h3 {
        font-size: 1.4rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.9rem;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
    
    .product-card {
        margin-bottom: 25px;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .top-header .contact-info, 
    .top-header .social-icons {
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .social-icons {
        margin-top: 5px;
    }
    
    .main-header .col-md-3, 
    .main-header .col-md-6, 
    .main-header .col-md-4 {
        text-align: center !important;
    }
    
    .search-box {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .d-flex.justify-content-end {
        justify-content: center !important;
        margin-top: 15px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 10px;
        bottom: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.76562rem;
    }
    
    .product-price, .old-price {
        font-size: 0.9rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .card-footer .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .testimonial-item {
        padding: 15px;
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .top-header {
        padding: 5px 0;
        font-size: 0.8rem;
    }
    
    .site-logo img {
        max-width: 100px !important;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .carousel-caption {
        max-width: 95%;
        padding: 8px;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .carousel-caption p {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption .btn {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        height: 60px;
        width: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-box p {
        font-size: 0.85rem;
    }
}
