/*  */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf6ef;
    color: #2c1a0e;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   PAGE BACKGROUND TEXTURE
   ========================================================================== */
.moltobella-page {
    background-color: #fdf6ef;
    background-image:
        repeating-radial-gradient(circle at 0 0, transparent 0, rgba(176,42,38,0.025) 40px),
        repeating-radial-gradient(circle at 0 0, transparent 0, rgba(176,42,38,0.025) 40px);
    background-position: 0 0, 20px 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */
.molto-header {
    text-align: center;
    padding: 60px 20px 40px;
}
.molto-logo {
    max-width: 280px;
    width: 60%;
    margin: 0 auto 12px;
    display: block;
    min-height: 50px;
}
.molto-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.1rem;
    color: #b02a26;
    letter-spacing: 0.5px;
}
.molto-tagline::before,
.molto-tagline::after {
    content: '•';
    color: #d4af37;
    margin: 0 10px;
}

/* ==========================================================================
   PRODUCT ROWS
   ========================================================================== */
.molto-products {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.molto-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 320px;
    position: relative;
    padding: 0;
    margin-bottom: 30px;
}

.molto-row .molto-text {
    padding: 36px 50px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.molto-row .molto-img {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* ===== كلاسات صريحة للتحكم في اتجاه كل صورة ولصقها بحافة الشاشة الصحيحة ===== */

/* الصورة على اليمين: تلتصق بحافة الشاشة اليمين */
.molto-img-right {
    border-radius: 16px 16px 16px 16px;
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
    right: -119px;
}
.molto-img-right img {
    border-radius: 16px 16px 16px 16px;
}

/* الصورة على الشمال: تلتصق بحافة الشاشة الشمال، وترتيبها قبل النص */
.molto-img-left {
    order: -1;
    border-radius: 16px 16px 16px 16px;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    left: -119px;
}
.molto-img-left img {
    border-radius: 16px 16px 16px 16px;
}

.molto-row .molto-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 3;
}
.molto-row:hover .molto-img img {
    transform: scale(1.03);
}

.molto-number {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #b02a26;
    margin-bottom: 6px;
    display: inline-block;
}
.molto-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: #2c1a0e;
    line-height: 1.15;
    margin-bottom: 8px;
}
.molto-subtitle {
    font-size: 0.92rem;
    color: #5a4636;
    font-weight: 400;
    margin-bottom: 16px;
}
.molto-divider {
    width: 60px;
    height: 2px;
    background-color: #b02a26;
    opacity: 0.4;
    margin-bottom: 16px;
    border: none;
}
.molto-ingredients-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #b02a26;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.molto-ingredients-text {
    font-size: 0.82rem;
    color: #4a3a2c;
    line-height: 1.65;
    margin-bottom: 18px;
}
.molto-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.molto-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a2a1a;
}
.molto-meta-item i {
    font-size: 1rem;
    color: #6b3d1e;
}
.molto-new-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 4;
}

/* Color accents — كل منتج بقسمه ولونه الخاص بالظبط زي الأصل (تستخدم فقط للنص/الأيقونات) */

/* لون الرقم (01,02,03...) والأيقونات و"INGREDIENTS" يطابق لون المنتج نفسه (لون نص فقط) */
.molto-row.bg-red   .molto-number,
.molto-row.bg-red   .molto-meta-item i,
.molto-row.bg-red   .molto-ingredients-label { color: #c0392e; }
.molto-row.bg-red   .molto-divider { background-color: #c0392e; }

.molto-row.bg-green .molto-number,
.molto-row.bg-green .molto-meta-item i,
.molto-row.bg-green .molto-ingredients-label { color: #8a9a64; }
.molto-row.bg-green .molto-divider { background-color: #8a9a64; }

.molto-row.bg-pink  .molto-number,
.molto-row.bg-pink  .molto-meta-item i,
.molto-row.bg-pink  .molto-ingredients-label { color: #d99d8c; }
.molto-row.bg-pink  .molto-divider { background-color: #d99d8c; }

.molto-row.bg-olive .molto-number,
.molto-row.bg-olive .molto-meta-item i,
.molto-row.bg-olive .molto-ingredients-label { color: #6f8049; }
.molto-row.bg-olive .molto-divider { background-color: #6f8049; }

.molto-row.bg-blue  .molto-number,
.molto-row.bg-blue  .molto-meta-item i,
.molto-row.bg-blue  .molto-ingredients-label { color: #7fb0c4; }
.molto-row.bg-blue  .molto-divider { background-color: #7fb0c4; }

/* ==========================================================================
   FIND US AT — Section Header
   ========================================================================== */
.molto-findus {
    text-align: center;
    padding: 70px 20px 10px;
}

.molto-findus-icon {
    object-fit: contain;
    margin: 0 auto 80px;
    display: block;
    /* margin-top: -80px; */
}

.molto-findus .molto-location-logo.molto-findus-icon {
    width: 266px !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto -4px !important;
    display: block !important;
}

.molto-findus h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #2c1a0e;
    margin: 0 0 6px;
}

.molto-findus p {
    font-size: 0.88rem;
    color: #a0856a;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   PARTNERS — Wrapper
   ========================================================================== */
.molto-partners-group {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.molto-partners-group:first-of-type { margin-top: 36px; }
.molto-partners-group:last-of-type  { padding-bottom: 60px; }

/* ── Row: [category label] | [divider] | [cards] ── */
.molto-partners-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

/* ── Left: Category Label ── */
.molto-cat-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    width: 88px;
    flex-shrink: 0;
}

.molto-cat-side i {
    font-size: 1.4rem;
    color: #3d2a18;
}

.molto-cat-side span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #3d2a18;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* ── Vertical Divider ── */
.molto-cat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 64px;
    background: linear-gradient(180deg, transparent, #c9a87a 30%, #c9a87a 70%, transparent);
    margin: 0 24px;
    flex-shrink: 0;
}

/* ── Logo Cards Container ── */
.molto-partners-cards {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

/* ── Individual Logo Card ── */
.molto-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 72px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8ddd0;
    box-shadow: 0 2px 10px rgba(44, 26, 14, 0.06);
    padding: 10px 14px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    overflow: hidden;
}

.molto-partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(44, 26, 14, 0.12);
    border-color: #c9a87a;
}

.molto-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.molto-partner-logo:hover img {
    transform: scale(1.05);
}

/* ── Dark card variant (Fat7ala etc.) ── */
.molto-partner-logo.molto-partner-dark {
    background: #1c1a17;
    border-color: #2e2b26;
}
.molto-partner-logo.molto-partner-dark:hover {
    border-color: #c9a87a;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .molto-row {
        grid-template-columns: 1fr;
    }
    .molto-img-left { order: 0; }
    .molto-row .molto-text { padding: 24px 20px; text-align: center; }
    .molto-row .molto-img { min-height: 220px; margin: 0 !important; padding: 0 !important; }
    .molto-row .molto-img img { border-radius: 16px 16px 16px 16px !important; min-height: 220px; }
    .molto-divider { margin-left: auto; margin-right: auto; }
    .molto-meta { justify-content: center; }
    .molto-new-badge { top: 16px; right: 16px; max-width: 64px; }
    .molto-findus h2 { font-size: 1.9rem; }

    .molto-partners-group { padding: 0 20px; }
    .molto-cat-side        { min-width: 74px; width: 74px; }
    .molto-cat-side i      { font-size: 1.2rem; }
    .molto-cat-side span   { font-size: 0.55rem; letter-spacing: 2px; }
    .molto-cat-divider     { margin: 0 18px; }
    .molto-partner-logo    { width: 118px; height: 62px; padding: 8px 12px; border-radius: 12px; }
    .molto-partners-cards  { gap: 10px; }
}

@media (max-width: 600px) {
    .molto-findus          { padding: 50px 16px 8px; }
    .molto-findus h2       { font-size: 1.6rem; }
    .molto-partners-group  { padding: 0 14px; }

    .molto-partners-row    { flex-direction: column; align-items: flex-start; gap: 14px; }

    .molto-cat-side {
        flex-direction: row;
        width: auto;
        min-width: unset;
        gap: 8px;
    }
    .molto-cat-side span   { font-size: 0.62rem; letter-spacing: 2px; }

    .molto-cat-divider {
        width: 100%;
        height: 1px;
        min-height: unset;
        align-self: auto;
        background: linear-gradient(90deg, transparent, #c9a87a 30%, #c9a87a 70%, transparent);
        margin: 0;
    }

    .molto-partner-logo    { width: 104px; height: 56px; padding: 8px 10px; border-radius: 10px; }
    .molto-partners-cards  { gap: 9px; }
}

@media (max-width: 480px) {
    .molto-logo { width: 75%; }
    .molto-title { font-size: 1.5rem; }
}

@media (max-width: 380px) {
    .molto-partner-logo    { width: 90px; height: 50px; padding: 7px 8px; border-radius: 9px; }
    .molto-partners-cards  { gap: 7px; }
}

/* ==========================================================================
   LANGUAGE TOGGLE BUTTON
   ========================================================================== */
.lang-toggle-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 999;
    background-color: #b02a26;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(176,42,38,0.3);
    transition: background-color 0.25s ease, transform 0.2s ease;
}
.lang-toggle-btn:hover {
    background-color: #8f201d;
    transform: translateY(-2px);
}
[dir="rtl"] .lang-toggle-btn {
    right: auto;
    left: 18px;
}

@media (max-width: 480px) {
    .lang-toggle-btn {
        top: 12px;
        right: 12px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    [dir="rtl"] .lang-toggle-btn {
        right: auto;
        left: 12px;
    }
}

/* ==========================================================================
   RTL SUPPORT (النسخة العربية)
   ========================================================================== */
html[dir="rtl"] body {
    font-family: 'Poppins', 'Tahoma', sans-serif;
}
html[dir="rtl"] .molto-tagline::before,
html[dir="rtl"] .molto-tagline::after { content: '•'; }

html[dir="rtl"] .molto-text { text-align: right; }
html[dir="rtl"] .molto-divider { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .molto-meta { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .molto-meta-item { flex-direction: row-reverse; }
html[dir="rtl"] .molto-new-badge { right: auto; left: 24px; }

/* في RTL: الصورة اليمين تبقى شمال والعكس */
html[dir="rtl"] .molto-img-right {
    order: -1;
    margin-right: 0;
    padding-right: 0;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    border-radius:  16px 16px 16px 16px;
}
html[dir="rtl"] .molto-img-right img {
    border-radius: 16px 16px 16px 16px;
}
html[dir="rtl"] .molto-img-left {
    order: 0;
    margin-left: 0;
    padding-left: 0;
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
    border-radius: 16px 16px 16px 16px;
}
html[dir="rtl"] .molto-img-left img {
    border-radius: 16px 16px 16px 16px;
}

html[dir="rtl"] .molto-findus h2::before,
html[dir="rtl"] .molto-findus h2::after { content: '•'; }

html[dir="rtl"] .molto-partners-row { flex-direction: row-reverse; }
html[dir="rtl"] .molto-partners-cards { justify-content: flex-end; }

@media (max-width: 900px) {
    html[dir="rtl"] .molto-img-right,
    html[dir="rtl"] .molto-img-left {
        order: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
    html[dir="rtl"] .molto-text { text-align: center; }
}

@media (max-width: 600px) {
    html[dir="rtl"] .molto-partners-row { flex-direction: column; align-items: flex-end; }
    html[dir="rtl"] .molto-partners-cards { justify-content: flex-start; }
}
