@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Poppins:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf6ee;
    color: #2c1a0e;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.velden-page {
    background-color: #fdf6ee;
    background-image:
        repeating-radial-gradient(circle at 0 0, transparent 0, rgba(139,90,46,0.025) 40px),
        repeating-radial-gradient(circle at 0 0, transparent 0, rgba(139,90,46,0.025) 40px);
    background-position: 0 0, 20px 20px;
    max-width: 100%;
    overflow-x: hidden;
}
.main-navbar {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.38s cubic-bezier(0.4,0,0.2,1);
    background-image: linear-gradient(180deg, #ffffff 0%, #fdf8f1 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.main-navbar.scrolled { box-shadow: 0 4px 25px rgba(0,0,0,0.1); }
.main-navbar::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37 20%, #b02a26 50%, #d4af37 80%, transparent);
    background-size: 200% 100%;
    animation: shimmerMove 6s linear infinite;
}

.main-navbar .navbar-brand img { height: 42px; width: auto; object-fit: contain; }
.main-navbar .navbar-brand { transition: opacity 0.2s ease; }
.main-navbar .navbar-brand:hover { opacity: 0.85; }

.main-navbar .nav-link {
    color: #2b2b2b !important; font-weight: 600; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 0.8px; padding: 8px 0 !important;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color 0.2s ease; white-space: nowrap;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: #b02a26 !important; }
.main-navbar .nav-link::after { display: none !important; }

.main-navbar .navbar-toggler {
    border: 1.5px solid #ecdccb !important; border-radius: 8px;
    padding: 7px 10px !important; flex-shrink: 0;
}
.main-navbar .navbar-toggler:focus { box-shadow: none !important; }
.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%2874,44,17,0.85%29' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 22px; height: 22px;
}
.main-navbar .social-icons a {
    color: #555; font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease; display: inline-block;
}
.main-navbar .social-icons a:hover { color: #b02a26; transform: translateY(-2px); }

/* ── Dropdown toggle arrows ── */
.products-dropdown .nav-link.dropdown-toggle,
.new-dropdown .nav-link.dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.products-dropdown .nav-link.dropdown-toggle::before,
.new-dropdown .nav-link.dropdown-toggle::before {
    content: '▾'; font-size: 0.85rem; line-height: 1; transition: transform 0.25s ease;
}
.products-dropdown.show .nav-link.dropdown-toggle::before,
.new-dropdown.show .nav-link.dropdown-toggle::before { transform: rotate(180deg); }

/* ── BRANDS dropdown ── */
.products-dropdown-menu {
    border: none; border-radius: 14px; padding: 4px 0;
    margin-top: 12px !important; min-width: 220px; max-width: 220px;
    background-color: #fff;
    box-shadow: 0 16px 45px rgba(44,26,14,0.18), 0 0 0 1px rgba(44,26,14,0.06);
    overflow: hidden; animation: fadeDownMenu 0.22s cubic-bezier(0.22,1,0.36,1);
}
.products-dropdown-menu li { border-bottom: 1px solid #f3ebe1; }
.products-dropdown-menu li:last-child { border-bottom: none; }
.products-dropdown-menu .dropdown-item {
    padding: 1px 10px; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease;
}
.products-dropdown-menu .dropdown-item:hover,
.products-dropdown-menu .dropdown-item:focus { background-color: #fdf6ee; }
.products-dropdown-menu .dropdown-item img {
    max-height: var(--logo-h, 52px); max-width: var(--logo-w, 160px);
    width: auto; height: auto; object-fit: contain; display: block;
    mix-blend-mode: multiply;
    transition: transform 0.25s ease;
}
.products-dropdown-menu .dropdown-item:hover img { transform: scale(1.05); }

@media (min-width: 992px) {
    .products-dropdown-menu { left: 50%; margin-left: -110px; margin-top: 12px; }
    .products-dropdown:hover .products-dropdown-menu {
        display: block; animation: fadeDownMenu 0.22s cubic-bezier(0.22,1,0.36,1);
    }
}

/* ── NEW dropdown ── */
.new-dropdown-menu {
    border: none; border-radius: 14px; padding: 6px 0;
    margin-top: 14px !important; min-width: 360px; background-color: #fff;
    box-shadow: 0 16px 45px rgba(44,26,14,0.18), 0 0 0 1px rgba(44,26,14,0.05);
    overflow: hidden; list-style: none;
    animation: fadeDownMenu 0.22s cubic-bezier(0.22,1,0.36,1);
}
.new-dropdown-item { border-bottom: 1px solid #f5ede4; }
.new-dropdown-item:last-child { border-bottom: none; }
.new-dropdown-link {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 16px 28px; text-decoration: none; transition: background-color 0.2s ease;
}
.new-dropdown-link:hover { background-color: #fdf6ee; }
.new-dropdown-logo { max-height: 38px; max-width: 170px; object-fit: contain; flex-shrink: 0; }
.new-badge-img     { width: 60px; height: auto; object-fit: contain; flex-shrink: 0; }

@media (min-width: 992px) {
    .new-dropdown-menu { left: 50%; margin-left: -180px; margin-top: 14px; }
    .new-dropdown:hover .new-dropdown-menu {
        display: block; animation: fadeDownMenu 0.22s cubic-bezier(0.22,1,0.36,1);
    }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .main-navbar .container {
        display: flex; flex-wrap: wrap; align-items: center;
        justify-content: space-between; padding: 0 clamp(10px, 3vw, 14px); gap: 0;
    }
    .main-navbar .navbar-brand { flex: 0 0 auto; order: 1; margin: 0; }
    .main-navbar .navbar-brand img { height: clamp(34px, 8vw, 38px); }
    .main-navbar .d-flex.align-items-center {
        flex: 0 0 auto; order: 2; margin-inline-start: auto !important;
        display: flex; align-items: center; gap: 8px !important;
    }
    .main-navbar .social-icons { display: flex; gap: 6px !important; }
    .main-navbar .social-icons a {
        width: 34px; height: 34px; display: inline-flex; align-items: center;
        justify-content: center; border-radius: 50%; background: rgba(74,44,17,0.07);
        color: #555; font-size: 0.9rem; transition: background 0.2s ease, color 0.2s ease;
        text-decoration: none;
    }
    .main-navbar .social-icons a:hover { background: rgba(176,42,38,0.1); color: #b02a26; }
    .main-navbar .navbar-toggler { padding: 6px 9px !important; flex-shrink: 0; }
    .main-navbar .navbar-collapse {
        order: 3; flex: 0 0 100%; width: 100%; overflow: visible;
        background: linear-gradient(160deg, #ffffff 0%, #fdf8f2 100%);
        border-radius: 16px; margin-top: 10px; margin-bottom: 4px;
        border: 1px solid #ede3d8;
        box-shadow: 0 16px 40px rgba(44,26,14,0.12), 0 0 0 1px rgba(236,220,203,0.6);
        padding: 4px 12px 14px;
    }
    .main-navbar .navbar-nav {
        flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 0; margin: 0;
    }
    .main-navbar .nav-item { width: 100%; }
    .main-navbar .nav-link {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        font-size: 0.8rem !important; font-weight: 700; letter-spacing: 1.2px;
        padding: 13px 8px !important; width: 100%; border-radius: 0;
        border-bottom: 1px solid rgba(237,219,203,0.8); color: #3d1f0a !important;
        white-space: nowrap; transition: color 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
    }
    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active { color: #b02a26 !important; background: rgba(176,42,38,0.04); border-radius: 10px; }
    .main-navbar .nav-item:last-child > .nav-link { border-bottom: none; }
    .products-dropdown-menu, .new-dropdown-menu {
        position: static !important; float: none !important; inset: auto !important;
        margin: 0 0 8px !important; transform: none !important; width: 100% !important;
        min-width: 0 !important; max-width: 100% !important; background: #fdf9f4 !important;
        border: 1px solid rgba(237,219,203,0.9) !important; border-radius: 14px !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
        overflow: hidden !important; padding: 4px 6px !important; animation: none !important;
    }
    .products-dropdown-menu li { border-bottom: 1px solid rgba(237,219,203,0.7); }
    .products-dropdown-menu li:last-child { border-bottom: none; }
    .products-dropdown-menu .dropdown-item {
        padding: 10px 16px;  display: flex; align-items: center; justify-content: center;
        border-radius: 10px; transition: background 0.18s ease;
    }
    .products-dropdown-menu .dropdown-item:hover { background: rgba(176,42,38,0.05) !important; }
    .products-dropdown-menu .dropdown-item img { max-height: 46px !important; max-width: 160px !important; }
    .new-dropdown-item { border-bottom: 1px solid rgba(237,219,203,0.7); }
    .new-dropdown-item:last-child { border-bottom: none; }
    .new-dropdown-link { padding: 12px 20px; gap: 16px; justify-content: center; }
    .new-dropdown-logo { max-height: 32px !important; max-width: 130px !important; }
    .new-badge-img     { width: 44px !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .main-navbar .navbar-collapse { padding: 6px 20px 18px; }
    .main-navbar .nav-link { font-size: 0.82rem !important; padding: 14px 10px !important; }
    .products-dropdown-menu .dropdown-item img { max-height: 50px !important; }
}

@media (max-width: 767.98px) {
    .main-navbar .navbar-collapse { padding: 4px 10px 12px; }
}

@media (max-width: 480px) {
    body { padding-top: 54px; }
    .main-navbar .container        { padding: 0 10px; }
    .main-navbar .navbar-brand img { height: 34px !important; }
    .main-navbar .social-icons a   { width: 30px; height: 30px; font-size: 0.82rem; }
    .main-navbar .navbar-toggler   { padding: 5px 8px !important; }
    .main-navbar .nav-link         { font-size: 0.75rem !important; padding: 11px 6px !important; letter-spacing: 1px !important; }
    .products-dropdown-menu .dropdown-item img { height: 40px !important; max-width: 130px !important; }
    .new-dropdown-logo { max-height: 28px !important; max-width: 110px !important; }
}

html, body { overflow-x: hidden; }
.main-navbar { max-width: 100%; }
/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */
.velden-header {
    text-align: center;
    padding: 60px 20px 30px;
    margin-top: 65px;
}
.velden-logo {
    max-width: 320px;
    width: 50%;
    margin: -25px auto;
    margin-top: -50px;
    display: block;
    
}
.velden-divider {
    width: 120px;
    height: 1px;
    right: -35px;
    background-color: #e85025;
    margin: 5px auto 15px;
    position: relative;
    border: none;
}
.velden-divider::after {
    content: '';
    position: absolute;
    left: 50%; top: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: #c9a05c;
    transform: translateX(-50%);
}
.velden-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #b9863f;
    margin: 1px auto 0;
    margin-left: 50px;
}
.velden-tagline::before,
.velden-tagline::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a05c);
}
.velden-tagline::after {
    background: linear-gradient(90deg, #c9a05c, transparent);
}
/* ==========================================================================
   PRODUCT ROWS
   ========================================================================== */
.velden-products {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 0;
}

.velden-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}
.velden-row + .velden-row {
    border-top: 1px solid #ecdfcd;
}
.velden-row[data-reverse="true"] .velden-text { order: 1; }
.velden-row[data-reverse="true"] .velden-img  { order: 0; }

.velden-number {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.2rem;
    color: #b9863f;
    line-height: 1;
    display: inline-block;
    vertical-align: top;
    margin-right: 14px;
}
.velden-title-block {
    display: inline-block;
}
.velden-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #2c1a0e;
    line-height: 1.2;
}
.velden-title-divider {
    width: 90px;
    height: 2px;
    background-color: #c9a05c;
    margin-top: 12px;
    border: none;
}

.velden-ingredients-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b9863f;
    text-transform: uppercase;
    margin: 26px 0 10px;
}
.velden-ingredients-box {
    background-color: #fbf1e3;
    border: 1px solid #ecdfcd;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: #4a3a2c;
    line-height: 1.65;
    margin-bottom: 22px;
}

.velden-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.velden-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.velden-meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f3e3c8;
    color: #8a5a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.velden-meta-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c1a0e;
    line-height: 1.3;
}
.velden-meta-text span {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: #5a4636;
}

.velden-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.velden-img img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}
.velden-row:hover .velden-img img {
    transform: scale(1.02) translateY(-4px);
}

/* ==========================================================================
   BOTTOM NOTES (3 COLUMNS)
   ========================================================================== */
.velden-notes {
    max-width: 1100px;
    margin: 20px auto 70px;
    padding: 44px 50px;
    background-color: #fbf1e3;
    border: 1px solid #ecdfcd;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    text-align: center;
}
.velden-note-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #b9863f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
}
.velden-notes h4 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #2c1a0e;
    margin-bottom: 10px;
}
.velden-notes p {
    font-size: 0.8rem;
    color: #5a4636;
    line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .velden-row,
    .velden-row[data-reverse="true"] {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 40px 0;
    }
    .velden-row[data-reverse="true"] .velden-text { order: 0; }
    .velden-row[data-reverse="true"] .velden-img  { order: -1; }
    .velden-title-divider { margin-left: auto; margin-right: auto; }
    .velden-meta { justify-content: center; }
    .velden-img { min-height: 260px; }
    .velden-notes { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }

    /* منع الديفايدر من الخروج بره حدود الشاشة على الموبايل */
    .velden-divider {
        right: 0;
    }

    .velden-products {
        padding: 24px 20px 0;
    }
    .velden-ingredients-box {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .velden-logo { width: 90%; }
    .velden-number { font-size: 2.4rem; }
    .velden-title { font-size: 1.2rem; }

    .velden-header { padding: 44px 16px 24px; }
    .velden-products { padding: 20px 16px 0; }
    .velden-row { padding: 30px 0; gap: 20px; }
    .velden-ingredients-box { padding: 14px 16px; font-size: 0.8rem; }
    .velden-meta { gap: 18px; }
    .velden-notes { padding: 26px 18px; margin: 16px auto 50px; }

    .lang-toggle-btn {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .velden-number { font-size: 2rem; }
    .velden-title { font-size: 1.05rem; }
    .velden-meta { gap: 12px; }
    .velden-meta-item { gap: 8px; }
}

/* ==========================================================================
   NEW ADDITIONS — language toggle button + Arabic mode
   (لم يتم تعديل أي قاعدة موجودة بالأعلى، الإضافات فقط تحت هذا الفاصل)
   ========================================================================== */

.lang-toggle-btn {
    position: fixed;
    top: 84px;
    right: 18px;
    z-index: 999;
    background-color: #e85025;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(232,80,37,0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(232,80,37,0.4);
}
.lang-toggle-btn i { font-size: 0.9rem; }

body.lang-ar {
    font-family: 'Tajawal', sans-serif;
}
body.lang-ar .velden-title,
body.lang-ar .velden-ingredients-label,
body.lang-ar .velden-ingredients-box,
body.lang-ar .velden-meta-text,
body.lang-ar .velden-notes h4,
body.lang-ar .velden-notes p {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}