/* =========================================================
   Mashaer Portal — Home page styles
   Scoped to .mashaer-home and .mashaer-section.
   Extracted from Pages/Index.cshtml inline <style> block.
   ========================================================= */

.mashaer-home {
    --home-cream: #f8f4ed;
    --home-ink: #181613;
    --home-muted: #6f6a61;
    --home-gold: #c19d60;
    --home-line: rgba(24, 22, 19, .12);
    color: var(--home-ink);
    font-family: var(--mashaer-font-family);
    overflow: hidden;
}

.mashaer-home .font-editorial,
.mashaer-home__hero-title,
.mashaer-home h2 {
    font-family: var(--mashaer-font-family);
}

.mashaer-home__hero {
    min-height: 100svh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    color: #fff;
    background-image: var(--hero-desktop-image);
    background-size: cover;
    background-position: center;
}

.mashaer-home__hero-media {
    display: none;
    margin: 0;
    line-height: 0;
}

.mashaer-home__hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.mashaer-home__hero-center {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 72px 24px 146px;
    box-sizing: border-box;
    text-align: center;
}

.mashaer-home__hero-brand-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mashaer-home__hero-title {
    margin: 0;
    color: #d1ad67;
    font-size: clamp(128px, 14vw, 150px);
    font-weight: 400;
    line-height: .86;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.mashaer-home__hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 26px 0 0;
    color: #d1ad67;
    font-size: clamp(34px, 3.4vw, 45px);
    font-weight: 300;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.mashaer-home__hero-subtitle::before,
.mashaer-home__hero-subtitle::after {
    content: "";
    width: clamp(90px, 9vw, 148px);
    height: clamp(20px, 1.8vw, 30px);
    flex: 0 0 auto;
    background: #c58b49;
}

.mashaer-home__hero-divider {
    width: 1px;
    height: clamp(108px, 8vw, 156px);
    margin-top: 34px;
    background: #d1ad67;
    opacity: .82;
}

.mashaer-home__hero-logo {
    display: block;
    width: clamp(74px, 6vw, 104px);
    height: clamp(74px, 6vw, 104px);
    margin-top: 26px;
    object-fit: contain;
}

.mashaer-section {
    padding: 92px max(20px, calc((100vw - 1230px) / 2));
    position: relative;
    z-index: 1;
    scroll-margin-top: 96px;
}

.mashaer-section--cream {
    background: #f5efe6;
}

.mashaer-section--white {
    background: #faf6ef;
}

.mashaer-home__kicker {
    margin: 0 0 9px;
    color: var(--home-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.mashaer-section__heading {
    width: min(100%, 760px);
    margin: 0 auto 44px;
    text-align: center;
}

.mashaer-section__heading h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.13;
}

.mashaer-section__heading p:not(.mashaer-home__kicker) {
    margin: 12px 0 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.8;
}

.mashaer-offer {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 450px;
    place-items: center;
    padding: 84px 20px;
    overflow: hidden;
    background-image: var(--offer-image);
    background-size: cover;
    background-position: center;
}

.mashaer-offer__panel {
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    background: rgba(52, 33, 24, .42);
    color: #fff;
    text-align: center;
    padding: 28px 16px;
}

.mashaer-offer h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(30px, 6vw, 40px);
    font-weight: 700;
    line-height: 1;
}

.mashaer-offer p:not(.mashaer-home__kicker) {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
}

.mashaer-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mashaer-countdown span {
    display: grid;
    gap: 4px;
    min-width: 72px;
    min-height: 76px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    align-content: center;
}

.mashaer-countdown strong,
.mashaer-countdown b {
    color: #fff;
    font-family: var(--mashaer-font-family);
    font-size: 31px;
    font-weight: 600;
    line-height: 1;
}

.mashaer-countdown b {
    font-size: 22px;
    opacity: .8;
}

.mashaer-countdown em {
    color: rgba(255, 255, 255, .86);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.mashaer-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 24px;
    background: #fff;
    color: var(--home-ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease;
}

.mashaer-button:hover {
    transform: translateY(-2px);
    background: #f5efe6;
}

.mashaer-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.mashaer-category {
    display: grid;
    gap: 13px;
    color: var(--home-ink);
    text-align: center;
    text-decoration: none;
}

.mashaer-category__image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #171717;
}

.mashaer-category__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
}

.mashaer-category:hover img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.mashaer-category__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--home-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.mashaer-category strong {
    color: var(--home-ink);
    font-size: 15px;
    font-weight: 600;
}

.mashaer-info {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.mashaer-info__copy {
    max-width: 560px;
}

.mashaer-info h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.04;
    text-transform: uppercase;
}

.mashaer-info p {
    margin: 18px 0 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.8;
}

.mashaer-info__media {
    overflow: hidden;
    border-radius: 8px;
    background: #101010;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

.mashaer-info__media img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.mashaer-faq-list {
    width: min(100%, 820px);
    margin: 0 auto;
}

.mashaer-faq-list details {
    border-bottom: 1px solid var(--home-line);
}

.mashaer-faq-list details:first-child {
    border-top: 1px solid var(--home-line);
}

.mashaer-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    color: #3e3932;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.mashaer-faq-list summary::-webkit-details-marker {
    display: none;
}

.mashaer-faq-list summary span:last-child {
    color: #8f897f;
    transition: transform .2s ease;
}

.mashaer-faq-list details[open] summary span:last-child {
    transform: rotate(180deg);
}

.mashaer-faq-list p {
    margin: -6px 0 18px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   Carousel — Impressions testimonials
   ========================================================= */

.mashaer-carousel {
    --carousel-visible: 1;
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 48px;
}

.mashaer-carousel__viewport {
    overflow: hidden;
}

.mashaer-carousel__track {
    display: flex;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.mashaer-carousel__slide {
    min-width: 0;
    flex: 0 0 calc(100% / var(--carousel-visible));
    box-sizing: border-box;
}

.mashaer-carousel--coverflow {
    --coverflow-card-width: clamp(292px, 38vw, 450px);
    --coverflow-depth: 2;
    --coverflow-x-step: 238;
    --coverflow-rotate-step: 11;
    --coverflow-scale-step: .13;
    --coverflow-opacity-step: .24;
    max-width: 1180px;
    padding: 0 58px;
}

.mashaer-carousel--coverflow .mashaer-carousel__viewport {
    min-height: 350px;
    overflow: hidden;
    perspective: 980px;
    perspective-origin: center;
}

.mashaer-carousel--coverflow .mashaer-carousel__track {
    position: relative;
    height: 330px;
    display: block;
    transform-style: preserve-3d;
}

.mashaer-carousel--coverflow .mashaer-carousel__slide {
    position: absolute;
    top: 18px;
    left: 50%;
    width: var(--coverflow-card-width);
    min-width: 0;
    height: auto;
    flex: none;
    transform-style: preserve-3d;
    transition: transform .62s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, filter .35s ease;
    will-change: transform, opacity;
}

.mashaer-carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(193, 157, 96, 0.3);
    border-radius: 999px;
    background: #fff;
    color: var(--home-gold);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    /* box-shadow: 0 2px 8px rgba(62, 41, 18, 0.08); */
}

.mashaer-carousel--coverflow .mashaer-carousel__btn {
    z-index: 150;
}

.mashaer-carousel__btn:hover {
    background: var(--home-gold);
    color: #fff;
    border-color: var(--home-gold);
    transform: translateY(-50%) scale(1.06);
    /* box-shadow: 0 4px 14px rgba(193, 157, 96, 0.3); */
}

.mashaer-carousel__btn:active {
    transform: translateY(-50%) scale(0.96);
}

.mashaer-carousel__btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.mashaer-carousel__btn:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 3px;
}

.mashaer-carousel__btn svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

.mashaer-carousel__btn--prev {
    inset-inline-start: 4px;
}

.mashaer-carousel__btn--next {
    inset-inline-end: 4px;
}

[dir="rtl"] .mashaer-carousel__btn--prev svg {
    transform: scaleX(-1);
}

[dir="rtl"] .mashaer-carousel__btn--next svg {
    transform: scaleX(-1);
}

.mashaer-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.mashaer-carousel__dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(193, 157, 96, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease, width 0.3s ease;
}

.mashaer-carousel__dot:hover {
    background: rgba(193, 157, 96, 0.5);
    transform: scale(1.15);
}

.mashaer-carousel__dot:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 2px;
}

.mashaer-carousel__dot.is-active {
    width: 26px;
    background: var(--home-gold);
    border-radius: 999px;
    transform: scale(1);
}

.mashaer-impression {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 8px;
    margin: 0 8px;
    padding: 18px;
    border: 1px solid rgba(193, 157, 96, .16);
    background: linear-gradient(180deg, #fff 0%, #f7efe3 100%);
    /* box-shadow: 0 14px 34px rgba(62, 41, 18, .06); */
    text-align: start;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mashaer-carousel:not(.mashaer-carousel--coverflow) .mashaer-impression:hover {
    transform: translateY(-3px);
    border-color: rgba(193, 157, 96, .42);
    /* box-shadow: 0 18px 42px rgba(62, 41, 18, .1); */
}

.mashaer-carousel--coverflow .mashaer-impression {
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    border-radius: 8px;
    padding: 24px 30px 20px;
    border-color: rgba(193, 157, 96, .2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 246, 239, .98)),
        radial-gradient(circle at 50% 0, rgba(193, 157, 96, .16), transparent 42%);
    /* box-shadow: 0 24px 62px rgba(62, 41, 18, .16); */
    text-align: center;
    filter: saturate(.92);
}

.mashaer-carousel--coverflow .mashaer-impression.is-active {
    border-color: rgba(193, 157, 96, .52);
    filter: saturate(1);
}

.mashaer-carousel--coverflow .mashaer-impression.is-near {
    /* box-shadow: 0 16px 38px rgba(62, 41, 18, .1); */
}

.mashaer-impression__product {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.mashaer-carousel--coverflow .mashaer-impression__product {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.mashaer-impression__image {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ece3d2;
    border-radius: 8px;
    background: #faf6ef;
}

.mashaer-carousel--coverflow .mashaer-impression__image {
    width: 88px;
    height: 88px;
    border: 6px solid #fff;
    border-radius: 999px;
    background: #f5efe6;
    box-shadow: 0 0 0 1px rgba(193, 157, 96, .42), 0 12px 28px rgba(62, 41, 18, .12);
}

.mashaer-impression__image img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
}

.mashaer-impression__product-name {
    color: #2f2418;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.mashaer-carousel--coverflow .mashaer-impression__product-name {
    max-width: 100%;
    color: var(--home-ink);
    font-family: var(--mashaer-font-family);
    font-size: 18px;
    font-weight: 700;
}

.mashaer-impression p {
    flex: 1;
    margin: 0;
    color: #5d4a37;
    font-size: 14px;
    line-height: 1.75;
}

.mashaer-carousel--coverflow .mashaer-impression p {
    display: -webkit-box;
    flex: 0 1 auto;
    max-width: 34ch;
    min-height: 0;
    overflow: hidden;
    color: #4f4031;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.mashaer-impression p::before,
.mashaer-impression p::after {
    color: var(--home-gold);
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 0;
}

.mashaer-impression p::before {
    content: "\"";
    margin-inline-end: 2px;
}

.mashaer-impression p::after {
    content: "\"";
    margin-inline-start: 2px;
}

.mashaer-impression__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(193, 157, 96, .18);
    padding-top: 14px;
}

.mashaer-carousel--coverflow .mashaer-impression__meta {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-top-color: rgba(193, 157, 96, .22);
}

.mashaer-impression strong {
    color: #2f2418;
    font-size: 13px;
    line-height: 1.4;
}

.mashaer-carousel--coverflow .mashaer-impression strong {
    font-size: 14px;
}

.mashaer-impression span {
    color: #b48846;
    font-size: 11px;
}

.mashaer-product-review-form {
    box-shadow: 0 18px 42px rgba(62, 41, 18, .07);
}

@media (min-width: 640px) {
    .mashaer-carousel {
        --carousel-visible: 2;
    }
}

@media (min-width: 960px) {
    .mashaer-carousel {
        --carousel-visible: 3;
    }
}

@media (min-width: 1180px) {
    .mashaer-carousel {
        --carousel-visible: 4;
    }
}

@media (max-width: 960px) {
    .mashaer-carousel--coverflow {
        --coverflow-card-width: min(430px, 72vw);
        --coverflow-depth: 1;
        --coverflow-x-step: 206;
        --coverflow-rotate-step: 8;
        padding: 0 34px;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__viewport {
        min-height: 342px;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__track {
        height: 322px;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__slide {
        height: auto;
    }
}

@media (max-width: 640px) {
    .mashaer-carousel {
        padding: 0 14px;
    }

    .mashaer-carousel--coverflow {
        --coverflow-card-width: min(336px, 86vw);
        --coverflow-depth: 1;
        --coverflow-x-step: 145;
        --coverflow-rotate-step: 6;
        --coverflow-scale-step: .18;
        --coverflow-opacity-step: .5;
        padding: 0;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__viewport {
        min-height: 326px;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__track {
        height: 306px;
    }

    .mashaer-carousel--coverflow .mashaer-carousel__slide {
        top: 10px;
        height: auto;
    }

    .mashaer-carousel__btn {
        width: 32px;
        height: 32px;
    }

    .mashaer-carousel__btn svg {
        width: 18px;
        height: 18px;
    }

    .mashaer-carousel__btn--prev {
        inset-inline-start: -4px;
    }

    .mashaer-carousel__btn--next {
        inset-inline-end: -4px;
    }

    .mashaer-carousel__dots {
        gap: 8px;
        margin-top: 22px;
    }

    .mashaer-carousel__dot {
        width: 8px;
        height: 8px;
    }

    .mashaer-carousel__dot.is-active {
        width: 20px;
    }

    .mashaer-impression {
        margin: 0 4px;
        padding: 16px;
    }

    .mashaer-carousel--coverflow .mashaer-impression {
        margin: 0;
        padding: 18px 18px 16px;
    }

    .mashaer-carousel--coverflow .mashaer-impression__image {
        width: 76px;
        height: 76px;
    }

    .mashaer-carousel--coverflow .mashaer-impression__product-name {
        font-size: 16px;
    }

    .mashaer-carousel--coverflow .mashaer-impression p {
        min-height: 0;
        font-size: 13px;
        line-height: 1.65;
    }
}

@media (max-width: 1024px) {
    .mashaer-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mashaer-info {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

@media (max-width: 720px) {
    .mashaer-home__hero {
        min-height: 0;
        display: block;
        background: none;
    }

    .mashaer-home__hero-media {
        display: block;
        /* aspect-ratio: 5 / 5; */
        overflow: hidden;
    }

    .mashaer-home__hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .mashaer-home__hero-center {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: none;
        justify-content: flex-end;
        padding: 36px 19px 23px;
        margin: 0;
    }

    .mashaer-home__hero-title {
        font-size: clamp(68px, 20vw, 92px);
    }

    .mashaer-home__hero-subtitle {
        gap: 10px;
        margin-top: 20px;
        font-size: clamp(15px, 4.2vw, 18px);
        white-space: nowrap;
    }

    .mashaer-home__hero-subtitle span {
        max-width: none;
    }

    .mashaer-home__hero-subtitle::before,
    .mashaer-home__hero-subtitle::after {
        width: clamp(38px, 13vw, 54px);
        height: 12px;
    }

    .mashaer-home__hero-divider {
        height: 72px;
        margin-top: 28px;
    }

    .mashaer-home__hero-logo {
        width: 66px;
        height: 66px;
        margin-top: 18px;
    }

    .mashaer-offer {
        min-height: 378px;
        padding: 48px 18px;
    }

    .mashaer-offer__panel {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .mashaer-countdown {
        gap: 5px;
    }

    .mashaer-countdown span {
        min-width: 56px;
        min-height: 60px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    .mashaer-countdown strong,
    .mashaer-countdown b {
        font-size: 24px;
    }

    .mashaer-countdown b {
        font-size: 15px;
    }

    .mashaer-countdown em {
        font-size: 9px;
    }

    .mashaer-section {
        padding-top: 66px;
        padding-bottom: 66px;
    }

    .mashaer-category-grid {
        grid-template-columns: 1fr;
    }
}
