/* ... (Side menu styles remain here) ... */
:root {
    --brand-burgundy: #860f0b;
    --brand-gold: #ffe081;
    --brand-gold-dark: #fac75a;
}
.bg-off-white{
    background-color: #ffe7a1;
}
body{
  font-family: "DM Sans", sans-serif;  font-weight: 400;
}
a {
    font-size: 20px;
}
.bg-white{
    background-color: #FFF0C4 !important;
}
.bg-gray-50{
    background-color: #ffe7a1 !important;
}
.dm-sans{
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

html { scroll-behavior: smooth; }
body { background-color: #FFF0C4; overflow-x: hidden; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 99; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; opacity: 0; visibility: hidden; }
.menu-overlay.visible { opacity: 1; visibility: visible; }
.side-menu-ar { position: fixed; top: 0; right: 0; height: 100%; width: 280px; background-color: #860f0b; z-index: 100; transition: transform 0.3s ease-in-out; padding-top: 60px; transform: translateX(100%); }
.side-menu-ar.open { transform: translateX(0); }
.side-menu-en { position: fixed; top: 0; left: 0; height: 100%; width: 280px; background-color: #860f0b; z-index: 100; transition: transform 0.3s ease-in-out; padding-top: 60px; transform: translateX(-100%); }
.side-menu-en.open { transform: translateX(0); }
.side-menu-link { color: #FFF0C4; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.side-menu-link:hover { color: #e6bd45; }

/* --- RESTORED: Main Section Animations --- */
@keyframes slideInFromLeft { 0% { transform: translateX(-100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideInFromRight { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.animate-slide-in-left { animation: slideInFromLeft 1s ease-out forwards; }
.animate-slide-in-right { animation: slideInFromRight 1s ease-out forwards; }


/* WebKit-specific scrollbar pseudo-elements */
body::-webkit-scrollbar {
    width: 11px; /* عرض شريط التمرير الرأسي */
    height: 10px; /* ارتفاع شريط التمرير الأفقي */
}

/* Track */
body::-webkit-scrollbar-track {
    background: #ffffff1f; 
    border-radius: 2px; /* تقويس حواف المسار */
}

/* Handle (the draggable part) */
body::-webkit-scrollbar-thumb {
    background: #860f0b; /* لون المقبض */
    border-radius: 1px; /* تقويس حواف المقبض */
    border: 1px solid #860f0b; /* حدود حول المقبض تتطابق مع لون المسار لخلق تأثير هامش */
}

/* Handle on hover */
body::-webkit-scrollbar-thumb:hover {
    border: 1px solid #e7ab28;
    background: #e7ab28; /* لون المقبض عند التحويم */
}

/* Corner (if both horizontal and vertical scrollbars are present) */
body::-webkit-scrollbar-corner {
    background: #ffffff1f;  /* لون الزاوية */
}

/* --- Footer Styles --- */
.copyright-bar {
    background-color: #f9f9f9;
    color: #111827;               /* لون الخط الأبيض */
    text-align: center;            /* توسيط النص */
    padding: 0px 10px;            /* مساحة داخلية */
    font-size: 14px;               /* حجم الخط */
    width: 35%;                   /* تأكد من أنه يملأ عرض الشاشة */
    /* ✅ *** هذا هو الجزء الجديد لقص الأطراف بشكل مستقيم *** */
    /* نستخدم clip-path لرسم شكل مضلع */
    clip-path: polygon(
        0% 100%,     /* النقطة السفلية اليسرى */
        100% 100%,    /* النقطة السفلية اليمنى */
        100% 65px,   /* النقطة العلوية اليمنى (مع إزاحة للأسفل) */
        calc(100% - 65px) 0%, /* النقطة العلوية اليمنى (بعد القص) */
        65px 0%,      /* النقطة العلوية اليسرى (قبل القص) */
        0% 65px      /* النقطة العلوية اليسرى (مع إزاحة للأسفل) */
    );
    
}

.copyright-bar p {
    margin: 0; /* إزالة أي هوامش إضافية */
}

.copyright-bar .credit-link {
    text-decoration: none;        /* إزالة الخط تحت الرابط */
    font-weight: bold;            /* جعل الخط عريضًا */
    transition: color 0.3s ease;  /* تأثير انتقال ناعم */
}

    .copyright-bar .credit-link:hover {
        color: #860f0b; /* تغيير لون الرابط عند مرور الماوس */
    }
    footer{
        padding-bottom: 0!important;
    }
    @media(max-width:375px){
        .copyright-bar {
                width: 100%;
                padding: 0px 10px;            /* مساحة داخلية */
                font-size: 10px; 
                width: 100%;
                clip-path: polygon(
                0% 100%,     /* النقطة السفلية اليسرى */
                100% 100%,    /* النقطة السفلية اليمنى */
                100% 30px,   /* النقطة العلوية اليمنى (مع إزاحة للأسفل) */
                calc(100% - 15px) 0%, /* النقطة العلوية اليمنى (بعد القص) */
                15px 0%,      /* النقطة العلوية اليسرى (قبل القص) */
                0% 30px      /* النقطة العلوية اليسرى (مع إزاحة للأسفل) */
            );
        }
        
    }
@media(max-width:625px){
    .copyright-bar {
        clip-path: polygon(
            0% 100%,     /* النقطة السفلية اليسرى */
            100% 100%,    /* النقطة السفلية اليمنى */
            100% 45px,   /* النقطة العلوية اليمنى (مع إزاحة للأسفل) */
            calc(100% - 30px) 0%, /* النقطة العلوية اليمنى (بعد القص) */
            30px 0%,      /* النقطة العلوية اليسرى (قبل القص) */
            0% 45px      /* النقطة العلوية اليسرى (مع إزاحة للأسفل) */
        );
   }
}
@media(max-width:1023px){
    .copyright-bar {
        width: 100%;
        padding: 5px 0;
    }

}
@media(min-width:1024px) and (max-width:1300px){
    .copyright-bar {
        width: 55%;
        padding: 5px 0;
    }
        
}

.header-logo{
    width: 95px;
    /*height: 55px;*/
    background-size: cover;
    background-position: center;
    margin: 0 auto; /* Center the logo */
}

/* --- Reusable Hero Shape --- */
.hero-shape {
    position: relative;
}
.hero-shape::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #860f0b;
    z-index: 1;
    clip-path: ellipse(80% 80% at 90% 20%);
}
html[dir="ltr"] .hero-shape::before {
    clip-path: ellipse(80% 80% at 10% 20%);
}
.hero-shape .container {
    position: relative;
    z-index: 2;
}
#brands img{
padding: 35px 0;
}
#brands .bg-white{
    padding-bottom: 50px;
}
main {
   /* min-height: 777px;*/
    align-content: center;  
}
.cover-img{
width:77% !important;
}
@media (max-width: 768px) {.cover-img{
width:100% !important;
}}
main a{
    font-size: 17px;
}

/* --- Background Shapes for Products Section --- */
#products-section {
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}
#products-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -200px;
    width: 500px;
    height: 500px;
    background-color: #860f0b;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 1;
}
#products-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -200px;
    width: 500px;
    height: 500px;
    background-color: #860f0b;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 1;
}
#products-section .container {
    position: relative;
    z-index: 2;
}

/* --- Product Card & Flip Animation Styles --- */
.product-card-container {
    perspective: 1200px;
    position: relative;
    z-index: 1;
    transition: min-height 0.4s ease-out;
}
.product-card-container.is-active {
    z-index: 10;
}
.flippable-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}
.flippable-card.is-flipped {
    transform: rotateY(180deg);
}
.card-face {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    background-color: #FFF0C4 ;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    display: flex;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

/* --- Shape INSIDE the card --- */
.card-face::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -80px;
    width: 250px;
    height: 250px;
    background-color: #860f0b;
    border-radius: 50%;
    opacity: 0.07;
    z-index: 1;
}
html[dir="ltr"] .card-face::before {
    right: auto;
    left: -80px;
}

.card-front {
    z-index: 2;
    padding: 1.5rem;
    align-items: center;
    min-height: 300px;
    gap: 30px;
}
@media (max-width: 768px) {
    .card-front {
        flex-direction: column;   
    }
    .product-image {
        margin: 0!important; 
    }
    html[dir="rtl"] .card-front {
        flex-direction: column-reverse;
    }
    html[dir="rtl"] header{
        direction: ltr; 
    }
    
}

.product-image {
   /* width: 300px;*/
    height: 250px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-left: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.hirtizonal .product-image {
   height: auto;
   width: 300px;
}

html[dir="rtl"] .product-image {
    margin-left: 0;
    margin-right: 1.5rem;
}
.product-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}
html[dir="rtl"] .product-info {
    text-align: right;
}
.product-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #860f0b;
    margin-bottom: 0.75rem;
}
.product-description {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}
.click-indicator {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #9CA3AF;
    align-self: flex-start;
}
html[dir="rtl"] .click-indicator {
    align-self: flex-end;
}
.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    min-height: 220px;
}
.nutrition-title, .nutrition-serving, .nutrition-table, .card-back .click-indicator {
    position: relative;
    z-index: 2;
}
.nutrition-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #860f0b;
    margin-bottom: 0.5rem;
}
.nutrition-serving {
    font-size: 1rem;
    color: #4B5563;
    margin-bottom: 1rem;
}
.nutrition-table {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1rem;
}
html[dir="rtl"] .nutrition-table {
    text-align: right;
}
.nutrition-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #E5E7EB;
}
.nutrition-table tr:last-child td {
    border-bottom: none;
}
.nutrition-table td:first-child {
    text-align: left;
}
.nutrition-table td:last-child {
    text-align: right;
    font-weight: 700;
}
html[dir="rtl"] .nutrition-table td:first-child {
    text-align: right;
}
html[dir="rtl"] .nutrition-table td:last-child {
    text-align: left;
}
.card-back .click-indicator {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* For scroll animations */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Brand Card Redesign --- */
.brand-card-content {
    position: relative;
    overflow: hidden; /* Ensures the pseudo-element doesn't spill out */
    padding: 2rem;
    border-radius: 0.75rem;
}


/* The background icon */
.brand-card-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg) scale(1.1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 70%;
    height: 70%;
    /*opacity: 0.80;*/
    z-index: 0;
}

/* The content within the card, needs to be on top of the icon */
.brand-card-content > * {
    position: relative;
    z-index: 1;
}

/* Specific Icons using SVG Data URIs */

.brand-card-content--chips::after {
    background-image:url(../img/chips.webp);

   /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%23860f0b' stroke-width='5' d='M10,50 C10,22.4 32.4,10 60,10 C87.6,10 90,32.4 90,60 C90,87.6 67.6,90 40,90 C12.4,90 10,77.6 10,50z'/%3E%3Cpath fill='none' stroke='%23860f0b' stroke-width='4' stroke-linecap='round' d='M30 75 A 30 30 0 0 0 70 75 M25 60 A 35 35 0 0 0 75 60 M20 45 A 40 40 0 0 0 80 45'/%3E%3C/svg%3E");
*/  }

.brand-card-content--biscuit::after {
     background-image:url(../img/biscuits.webp);
     
    /*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Crect x='10' y='10' width='80' height='60' rx='8' fill='none' stroke='%23860f0b' stroke-width='5'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%23860f0b'/%3E%3Ccircle cx='50' cy='30' r='3' fill='%23860f0b'/%3E%3Ccircle cx='70' cy='30' r='3' fill='%23860f0b'/%3E%3Ccircle cx='30' cy='50' r='3' fill='%23860f0b'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%23860f0b'/%3E%3Ccircle cx='70' cy='50' r='3' fill='%23860f0b'/%3E%3C/svg%3E");
*/}

.brand-card-content--candy::after {
    background-image:url(../img/lolipop.webp);
height: 95%;
   /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%23860f0b' stroke-width='6' stroke-linecap='round' d='M65.4,56.5 C72.8,45.3,70.1,29.9,58.9,22.5 C47.7,15.1,32.3,17.8,24.9,29 C17.5,40.2,20.2,55.6,31.4,63 C42.6,70.4,58,67.7,65.4,56.5z'/%3E%3Cpath fill='%23860f0b' d='m31.4,63-10,10a4,4,0,0,0,0,5.6l5.6,5.6a4,4,0,0,0,5.6,0l10-10'/%3E%3C/svg%3E");
*/}

.brand-card-content--wafer::after {
    background-image:url(../img/wafer.webp);
   /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23860f0b' stroke-width='4'%3E%3Cpath d='M10,20 H90 V80 H10z'/%3E%3Cpath d='M30,20 V80 M50,20 V80 M70,20 V80 M10,40 H90 M10,60 H90'/%3E%3C/g%3E%3C/svg%3E");
*/}


/* A class to control the image size and center it */
.brand-image {
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.trix, .party {
    background-image:url(../img/wafer.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-size: 35%;

}
.rocky {
    background-image:url(../img/biscuits.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-size: 35%;

}
.wow {
    background-image:url(../img/lolipop.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-size: 35%;

}
@media (max-width: 1440px){
   div.grid .h-80 {
    height: auto;

}
.trix, .party, .rocky, .wow {

    background-size: 70%;

}
}
/* Add a smooth transition for the dropdown icon rotation */
#side-menu .dropdown-toggle i {
    transition: transform 0.3s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}