:root {
    --primary: #C62828; /* أحمر طماطم - يناسب الحريرة */
    --primary-light: #FFEBEE;
    --primary-dark: #8B0000;
    --secondary: #388E3C; /* أخضر ثوم */
    --secondary-light: #81C784;
    --secondary-dark: #2E7D32;
    --accent: #FF8F00; /* برتقالي ذهبي - لون الطهي */
    --dark: #2C3E50; /* أزرق داكن */
    --light: #F8F9FA;
    --gray: #666666;
    --transition: all 0.3s ease;
    
    /* --- SCROLL VARIABLES --- */
    --scroll-duration: 20s; /* Increased Speed */
    --card-width: 300px; /* Define card width for fixed layout */
    --card-gap: 30px;
    --loop-items: 2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h2{
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary),var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo2 img{
  margin: 0px;
  padding: 8px;
  height:60px;
  width: 80px;
  display: flex;
  align-items: center;
  border-radius: 60%;
  background-color: #f8f9fa;
  box-shadow: 2px 2px 10px black;
  overflow: visible;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('Screenshot 2025-11-30 144432.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #FFB300;
}

.back-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Products Section */
.products {
    background-color: #f0f7f4;
}

.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.tab-btn:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
    color: white;
}

/* Wrapper for continuous scroll */
/* Container اللي جواه الحركة */
.product-grid-wrapper {
    overflow: hidden;
    padding: 40px 0;
    width: 100%;
    position: relative;
}

.product-grid {
    display: flex;
    gap: var(--card-gap);
    width: max-content; /* مهم جداً عشان العرض يتحدد حسب الكروت */
}

/* الأنميشن اللي هيخليها تلف للأبد */
.product-grid.scrolling {
    animation: scroll-loop var(--scroll-duration) linear infinite;
}

/* لما توقف بالماوس الحركة تهدأ أو تقف */
.product-grid.scrolling:hover {
    animation-play-state: paused;
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* بنتحرك بمقدار نص عرض الـ Container (لأننا هنكرر الكروت) */
        transform: translateX(calc(-50% - (var(--card-gap) / 2)));
    }
}

/* في حالة الفلتر أو الـ Detailed View بنلغي الأنميشن */
.product-grid.no-scroll {
    animation: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    transform: none !important;
}
/* Product Card Fixed Dimensions */
.product-card {
    min-width: var(--card-width); /* Fix card width */
    width: var(--card-width);
    height: 450px; /* Fixing height to restore proportions */
    flex-shrink: 0; /* Important for flex layout to prevent shrinking */
    /* Existing styles: */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1; /* Set default z-index */
}

/* Hover Effect on Cards (for Continuous Scroll Mode) - REMOVED 'height: auto;' HERE */
.product-grid:not(.no-scroll) .product-card:hover {
    transform: translateY(-10px) scale(1.05); /* Lift up and slightly enlarge */
    box-shadow: 0 15px 40px rgba(198, 40, 40, 0.15);
    /* height: auto; -- THIS LINE WAS THE PROBLEM */
    z-index: 10; /* يجلب البطاقة التي تم الوقوف عليها إلى المقدمة لمنع القص من البطاقات المجاورة */
}

/* Ensure cards in grid/detailed view revert to normal size */
.product-grid.no-scroll .product-card {
    width: 100%; /* Allow cards to take full grid space */
    min-width: unset;
    height: auto; /* Changed from 400px to auto in grid mode for content */
    transform: none; /* Reset hover effects from scroll mode */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-grid.single-category {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.product-card:hover {
    /* Removing original hover effect to let the new one take over */
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Re-apply original hover effect for cards in grid mode */
.product-grid.no-scroll .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card::after {
    content: 'Click for Details';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    height: 200px; /* Keeping original image height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 15px;
}

.product-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Detailed Product View */
.product-card.detailed-view {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    height: auto; /* Allow height to adjust in detailed view */
    cursor: default;
}

.product-card.detailed-view::after {
    display: none;
}

.product-card.detailed-view .product-image {
    flex: 1;
    height: auto;
    min-height: 300px;
}

.product-card.detailed-view .product-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card.detailed-view .product-image img {
    height: 100%;
    width: auto;
    max-width: 100%;
}

.additional-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-light);
}

.product-card.detailed-view .additional-details {
    display: block;
}

.nutrition-info, .usage-info, .storage-info {
    margin-bottom: 20px;
}

.nutrition-info h4, .usage-info h4, .storage-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.nutrition-table th, .nutrition-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.nutrition-table th {
    background-color: var(--primary-light);
    font-weight: 600;
}

.usage-list, .storage-list {
    list-style-type: none;
    padding-left: 0;
}

.usage-list li, .storage-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.usage-list li i, .storage-list li i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

/* Why Choose Us Section */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-icon i {
    font-size: 2.0rem;
    color: white;
}

/* Retail Section */
.retail {
    background-color: #f0f7f4;
}

.retail-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.retail-logo {
    width: 120px;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
}

.retail-logo img {
    max-width: 100%;
    max-height: 100%;
}

.retail-logos1{
    transition-duration: 0.5s;
}

.retail-logos1:hover{
    transform: translateY(-20px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    width: 150px;
    text-align: center;
}

.cert-card2 img {
    width: 200px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px black;
    transition-duration: 0.5s;
}
 .cert-card2 img:hover{
    transform: translateY(-15px);
    box-shadow:1px 1px 20px var(--primary);
 }

.cert-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cert-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Future Products Section */
.future-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.future-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.future-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.future-image {
    height:200px;
    overflow: hidden;
}

.future-image img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    transition: var(--transition);
}

.future-card:hover .future-image img {
    transform: scale(1.1);
}

.future-info {
    padding: 20px;
}

.future-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact h2::after {
    background-color: var(--accent);
}

.contact p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C3E50, #1a252f);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* New Style for IT Team Credit */
.it-credit {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.it-credit .team-name {
    font-weight: 700;
    color: var(--accent);
    padding: 0 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(255, 143, 0, 0.5);
}

.it-credit .team-name:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--accent), 0 0 20px rgba(255, 143, 0, 0.8);
    transform: scale(1.02);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    /* Ensure scroll wrapper is full width on small screens */
    .product-grid-wrapper {
         width: 100%;
         padding: 20px 15px;
    }

    .product-grid.single-category {
        grid-template-columns: 1fr;
    }
    
    .product-card.detailed-view {
        flex-direction: column;
    }
    
    .product-card.detailed-view .product-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .product-grid.single-category {
        grid-template-columns: 1fr;
    }
    
    .product-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        margin: 5px 0;
        width: 200px;
    }
    
    .product-card::after {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-card.detailed-view .product-info {
        padding: 20px;
    }

    .product-card {
        min-width: 250px;
    }
}
