/* ============================================= */
/* == EQUINOX Lubricants - Theme RTL == */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #b99403;
    --accent-color: #fa0808;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header Styles === */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo i {
    margin-left: 10px;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Language Switcher Styling */
.lang-switcher-dropdown .btn-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.lang-switcher-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(rgba(26, 60, 110, 0.85), rgba(26, 60, 110, 0.85)), 
                url('https://picsum.photos/seed/engineoil/1920/800.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { right: -100%; }
    100% { right: 100%; }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

/* === Section Styles === */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* === About Section === */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.03);
}

/* === Specifications Section === */
.specifications {
    background-color: var(--light-bg);
}

.spec-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spec-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.spec-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.spec-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.spec-card p {
    color: #666;
    line-height: 1.6;
}

/* === Products Section === */
.products {
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    position: relative;
}

.product-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.product-header .product-type {
    font-size: 14px;
    opacity: 0.9;
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.product-specs-mini {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-specs-mini h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.product-specs-mini ul li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-specs-mini ul li strong {
    color: #343a40;
}

/* === Facility Section === */
.facility {
    background-color: var(--light-bg);
}

.facility-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.facility-text {
    flex: 1;
}

.facility-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.facility-image {
    flex: 1;
}

.facility-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.facility-image img:hover {
    transform: scale(1.03);
}

.certification {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 15px;
    font-weight: 600;
}

/* === World Market Section === */
.world-market {
    background-color: white;
}

.market-stats {
    text-align: center;
    margin-bottom: 50px;
}

.market-stats h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.market-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.region-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.region-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.region-card h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.region-card ul {
    list-style: none;
}

.region-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.region-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* === Footer === */
footer {
    background: linear-gradient(135deg, var(--dark-bg), #1a252f);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

/* === Responsive Styles === */
@media (max-width: 992px) {
    .about-content, .facility-content {
        flex-direction: column;
    }
    .about-text, .about-image, .facility-text, .facility-image {
        flex: 1;
        width: 100%;
    }
    .hero h1 { font-size: 36px; }
    .section-title { font-size: 28px; }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .spec-cards { grid-template-columns: 1fr; }
}

/* === Admin Theme Overrides === */
/* Ensure admin theme is not affected */
.wrapper, .sidebar, .main-content, .top-navbar, .page-content, .widgets-grid, .widget, .chart-card, .activity-table {
    background-color: initial;
    color: initial;
    padding: initial;
    margin: initial;
    box-shadow: initial;
    border-radius: initial;
}
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    width: 60%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
}

.hero-text .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.hero-text .btn:hover {
    background-color: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    width: 40%;
    text-align: center;
}

.hero-overlay img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* تعديلات للغة العربية */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-text h1,
[dir="rtl"] .hero-text p {
    direction: rtl;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-overlay {
        width: 70%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-overlay {
        width: 90%;
    }
}
/* لإزالة قصص الصورة وجعلها تظهر بالكامل */
.product-details-section .product-image {
    height: auto !important; /* يجعل ارتفاع الحاوية يتكيف مع ارتفاع الصورة */
    overflow: visible; /* يضمن عدم إخفاء أي جزء من الصورة */
}

.product-details-section .product-image img {
    width: 100%; /* يضمن أن الصورة لا تتجاوز عرض الحاوية */
    height: auto !important; /* يمنع تغيير ارتفاع الصورة بشكل قسري */
    object-fit: contain; /* خيار بديل: يضمن ظهور الصورة كاملة داخل الحاوية */
}