:root {
    --bg-1: #fff8fc;
    --bg-2: #f7edf4;
    --surface: rgba(255, 250, 253, 0.92);
    --surface-strong: rgba(255, 255, 255, 0.97);
    --text: #25131f;
    --muted: #755f6d;
    --brand: #7a3359;
    --brand-2: #a25377;
    --brand-3: #5d2142;
    --gold: #d9b072;
    --gold-soft: rgba(217, 176, 114, 0.16);
    --line: rgba(217, 176, 114, 0.22);
    --shadow: 0 24px 55px rgba(45, 18, 34, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 92px;
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(217, 176, 114, 0.08), transparent 28%),
        radial-gradient(circle at 18% 10%, rgba(162, 83, 119, 0.10), transparent 24%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, #f5e8f0 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(325deg, rgba(122, 51, 89, 0.04), transparent 38%);
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.force-ltr {
    direction: ltr;
    unicode-bidi: plaintext;
    display: inline-block;
}

.top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 12px 0;
    background: linear-gradient(135deg, rgba(122, 51, 89, 0.95), rgba(162, 83, 119, 0.93));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 176, 114, 0.22);
    box-shadow: 0 8px 24px rgba(61, 21, 45, 0.16);
}

.top-ribbon__inner,
.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.top-ribbon__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-ribbon__brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.top-ribbon__brand {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.top-ribbon__store {
    color: rgba(255, 244, 232, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-ribbon__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switcher__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lang-switcher__item:hover {
    transform: translateY(-1px);
}

.lang-switcher__item.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.lang-switcher__flag {
    font-size: 15px;
    line-height: 1;
}

.top-ribbon__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.top-ribbon__pill--whatsapp {
    background: linear-gradient(135deg, rgba(28, 112, 70, 0.92), rgba(19, 147, 87, 0.92));
}

.top-ribbon__pill--phone {
    background: linear-gradient(135deg, rgba(122, 51, 89, 0.96), rgba(93, 33, 66, 0.96));
}

.pill-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-icon svg {
    width: 100%;
    height: 100%;
}

.page-shell {
    position: relative;
    z-index: 1;
    padding: 26px 0 42px;
}

.brand-panel,
.hero-card,
.footer-panel,
.empty-state,
.folder-card,
.gallery-card,
.lightbox__panel {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.brand-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(140deg, rgba(93, 33, 66, 0.97), rgba(122, 51, 89, 0.94) 55%, rgba(162, 83, 119, 0.92));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(217, 176, 114, 0.18), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.08), transparent 18%);
}

.brand-lockup,
.brand-panel__note {
    position: relative;
    z-index: 1;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-lockup__logo {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 28px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 251, 0.95));
    border: 1px solid rgba(217, 176, 114, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 16px 26px rgba(0, 0, 0, 0.16);
}

.brand-lockup__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-lockup__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-lockup__copy strong {
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.2;
}

.subline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.brand-panel__note {
    flex-shrink: 0;
    padding: 14px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.9)),
        linear-gradient(145deg, rgba(217, 176, 114, 0.04), rgba(122, 51, 89, 0.04));
}

.hero-card__content {
    max-width: 820px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--gold-soft);
    border: 1px solid rgba(217, 176, 114, 0.24);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.hero-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
}

.hero-card__stats {
    flex-shrink: 0;
    min-width: 190px;
    padding: 22px 18px;
    border-radius: 26px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 34px rgba(122, 51, 89, 0.22);
}

.hero-card__stats strong {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-card__stats span {
    display: block;
    font-size: 13px;
    opacity: 0.94;
}

.folder-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
/* لما يكون داخل المجلد صورة واحدة فقط */
.gallery-grid > .gallery-card:only-child {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}
/* اصغر على الجوال*/
.gallery-grid > .gallery-card:only-child {
    max-width: 260px;
}
.folder-card,
.gallery-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.folder-card:hover,
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(45, 18, 34, 0.18);
}

.folder-card__media,
.gallery-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f9f0f5 100%);
}

.folder-card__media img,
.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.folder-card:hover img,
.gallery-card:hover img {
    transform: scale(1.04);
}

.folder-card__media--empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.folder-card__badge,
.gallery-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(122, 51, 89, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.folder-card__body,
.gallery-card__body {
    padding: 16px;
}

.folder-card__body h2,
.gallery-card__body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.folder-card__body p,
.gallery-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.folder-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.gallery-card__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: inherit;
}

.gallery-card__actions {
    padding: 0 16px 16px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(122, 51, 89, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.empty-state,
.footer-panel {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
}

.empty-state h2,
.footer-panel strong {
    margin: 0 0 10px;
    font-size: 24px;
}

.empty-state p,
.footer-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.footer-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.footer-panel__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-panel__actions a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(122, 51, 89, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(24, 10, 18, 0.76);
    backdrop-filter: blur(8px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__panel {
    position: relative;
    width: min(1080px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
}

.lightbox__stage {
    min-height: min(76vh, 760px);
    display: grid;
    place-items: center;
    padding: 64px 72px 84px;
    background:
        radial-gradient(circle at top, rgba(217, 176, 114, 0.10), transparent 26%),
        linear-gradient(180deg, #fff 0%, #faf6f9 100%);
}

.lightbox__stage img {
    max-width: 100%;
    max-height: calc(76vh - 140px);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font: inherit;
}

.lightbox__close {
    top: 14px;
    inset-inline-start: 14px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(93, 33, 66, 0.9);
    font-size: 26px;
    line-height: 1;
    z-index: 3;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(93, 33, 66, 0.9);
    font-size: 28px;
    z-index: 3;
}

.lightbox__nav--prev {
    inset-inline-end: 14px;
}

.lightbox__nav--next {
    inset-inline-start: 14px;
}

html[dir="ltr"] .lightbox__nav--prev {
    right: 14px;
    left: auto;
}

html[dir="ltr"] .lightbox__nav--next {
    left: 14px;
    right: auto;
}

.lightbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(217, 176, 114, 0.18);
    background: rgba(255, 255, 255, 0.98);
}

.lightbox__meta h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.lightbox__meta p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.lightbox__gallery-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .top-ribbon__inner,
    .page-shell {
        width: min(100%, calc(100% - 22px));
    }

    .top-ribbon__inner,
    .brand-panel,
    .hero-card,
    .footer-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-ribbon__actions {
        width: 100%;
    }

    .brand-panel__note,
    .hero-card__stats {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 128px;
    }

    .top-ribbon {
        padding: 10px 0;
    }

    .lang-switcher,
    .top-ribbon__pill {
        width: 100%;
        justify-content: center;
    }

    .lang-switcher {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .folder-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-lockup__logo {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

    .brand-lockup__copy strong {
        font-size: 20px;
    }

    .hero-card,
    .empty-state,
    .footer-panel {
        padding: 18px;
    }

    .hero-card h1 {
        font-size: 28px;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox__panel {
        border-radius: 18px;
    }

    .lightbox__stage {
        min-height: auto;
        padding: 56px 12px 18px;
    }

    .lightbox__stage img {
        max-height: 62vh;
        border-radius: 12px;
    }

    .lightbox__close {
        top: 10px;
        inset-inline-start: 10px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .lightbox__nav {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 24px;
    }

    .lightbox__nav--prev {
        inset-inline-end: 10px;
    }

    .lightbox__nav--next {
        inset-inline-start: 10px;
    }

    .lightbox__footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }
}
