/* ملف roumy.css */
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* الأساسيات */
:root {
    --primary-color: #8b5a2b;
    --secondary-color: #d4a762;
    --dark-color: #333;
    --light-color: #f8f8f8;
    --white: #fff;
    --black: #000;
    --gray: #eee;
    --dark-gray: #777;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    direction: rtl;
    overflow-x: hidden;
}

.min{
    width: auto;
    height: 600px;
    background-color: white;
}

.min img{
    width: 50%;
    height: 600px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: #c10a28;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
}

/*النافبار*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #c10a28;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    direction: ltr;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 100px;
    transition: 0.3s;
    padding: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    order: 3;
}

.logo{
    order: 2;
    margin-top: 8px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    order: 1;
}

/* قائمة الفون الجانبية */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    z-index: 1001;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu ul li {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.mobile-menu ul li a:hover {
    color: #c10a28;
}

.close-menu {
    text-align: left;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.mobile-social-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-social-icons a {
    color: #c10a28;
    font-size: 1.2rem;
    transition: 0.3s;
}

.mobile-social-icons a:hover {
    color: #8a061a;
}

/* القوائم المنسدلة في القائمة الجانبية */
.dropdown {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dropbtn {
    display: inline-block;
    background: none;
    border: none;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    text-align: right;
    flex-grow: 1;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: rgb(204, 21, 21);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-right: 10px;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    width: 100%;
    padding-right: 15px;
    margin-top: 10px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dropdown-content a:hover {
    color: #928688;
}

/* مسار التنقل */
.breadcrumb {
    background-color: #c10a28;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--dark-gray);
    transition: var(--transition);
    color: white;
}

.breadcrumb a:hover {
    color: blue;
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--dark-gray);
}

.breadcrumb p {
    color: var(--primary-color);
    font-weight: 500;
    color: #000;
}

/* سكشن المنتجات */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 45px;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid #eee;
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    padding: 5px;
}

.product-image img {
    width: 95%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .overlay {
    opacity: 1;
}

.quick-view {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.quick-view:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-content {
    padding: 10px;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.rating {
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.rating span {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-right: 5px;
}

.product-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.weight {
    background-color: var(--gray);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* الترقيم */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    color: #c10a28;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: #c10a28;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.app-download {
    text-align: center;
    min-width: 250px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #c10a28;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: #c10a28;
    color: white;
}

.app-text {
    margin-top: 30px;
    font-size: 2rem;
    opacity: 0.9;
    color: #c10a28;
}

/* الفوتر */
.footer {
    background-color: #c10a28;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 150px;
    max-width: 30%;
    height: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: rgb(62, 36, 211);
    transform: translateX(-5px);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: #c10a28;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgb(62, 36, 211);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}


/* نموذج العرض السريع */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.modal-image {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.modal-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.modal-details {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.modal-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-price span {
    font-size: 0.9rem;
    color: var(--dark-gray);
    background-color: var(--gray);
    padding: 3px 10px;
    border-radius: var(--border-radius);
    margin-right: 10px;
}

.modal-details p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    .welcome-text {
        font-size: 2.5rem;
    }
    .logo{
        order: 2;
        position: static;
        transform: none;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-container {
        padding: 0 20px 0 35%;
    }
    
    .logo img {
        height: 100px;
        text-align: center;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
        color: #c10a28;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .product-card {
        min-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .min{
        width: auto;
        height: 70vh;
        background-color: white;
    }
    
    .min img{
        width: 100%;
        height: 70vh;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 100px;
    }
    
    .menu-toggle {
        position: static;
        order: 1;
        margin-left: auto;
    }
    
    .welcome-text {
        font-size: 1.8rem;
    }

     .mobile-menu {
        width: 75%;
    }
    
}