/* Mystery Box landing page - scoped to #mystery-box-page */

#mystery-box-page,
#mystery-box-page * {
    box-sizing: border-box;
}

.site-header, .site-footer{
	display: none !important;
}

#mystery-box-page {
    direction: rtl;
    text-align: right;
}

#mystery-box-page button,
#mystery-box-page input,
#mystery-box-page select,
#mystery-box-page textarea {
    font-family: inherit;
}

#mystery-box-page input[type="tel"] {
    direction: ltr;
    text-align: right;
}


#mystery-box-page {
    --mb-cream: #f5ecd7;
    --mb-cream-light: #fbf7ed;
    --mb-purple: #49384d;
    --mb-purple-dark: #2f1d35;
    --mb-orange: #d1863a;
    --mb-green: #69ad79;
    --mb-red: #b76d70;
    --mb-line: #b4a889;
    --mb-text: #392c37;
    --mb-muted: #716572;
    width: 100%;
    margin: 0;
    background: #ececec;
    color: var(--mb-text);
    font-family: "Cairo", "Tajawal", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

.mb-shell {
    width: min(100%, 820px);
    margin-inline: auto;
    overflow: hidden;
    background: var(--mb-cream);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.12);
}

/* Hero slider */
.mb-slider {
    position: relative;
    min-height: 550px;
    background: #b8ae91;
    overflow: hidden;
}

.mb-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.mb-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.mb-slide img {
    width: 100%;
    height: 100%;
    min-height: 550px;
    object-fit: cover;
}

.mb-slide-counter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(18px, 3vw, 27px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.mb-slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 13px;
    transform: translateX(-50%);
}

.mb-slider-dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.mb-slider-dot.is-active {
    background: #fff;
}

.mb-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 62px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 37px;
    line-height: 1;
    opacity: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background 0.2s ease;
}

.mb-slider:hover .mb-slider-arrow,
.mb-slider-arrow:focus-visible {
    opacity: 1;
}

.mb-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.4);
}

.mb-slider-arrow--next { left: 15px; }
.mb-slider-arrow--prev { right: 15px; }

/* Price strip */
.mb-price-strip {
    display: grid;
    grid-template-columns: 175px 1fr 175px;
    align-items: center;
    gap: 12px;
    min-height: 98px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--mb-line);
    background: var(--mb-cream-light);
}

.mb-price-copy {
    text-align: center;
}

.mb-price-copy strong,
.mb-price-copy span {
    display: block;
}

.mb-price-copy strong {
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.25;
}

.mb-price-copy span {
    color: var(--mb-muted);
    font-size: clamp(15px, 2.2vw, 21px);
}

.mb-price-badge {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 23px;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.mb-price-badge span {
    font-size: 18px;
}

.mb-price-badge strong {
    margin-top: 2px;
    font-size: 42px;
    font-weight: 800;
}

.mb-price-badge--before { background: var(--mb-red); }
.mb-price-badge--after  { background: var(--mb-green); }

/* Ribbon + main content */
.mb-content-with-ribbon {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas: "ribbon content";
    align-items: stretch;

    /* Keep the physical layout the same even when WordPress is RTL */
    direction: ltr;
}

.mb-side-ribbon {
    grid-area: ribbon;
}

.mb-main-content {
    grid-area: content;
    direction: rtl;
}
.mb-side-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 815px;
    padding: 22px 12px;
    background: var(--mb-purple);
    color: #fff;
    font-size: 26px;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mb-main-content {
    min-width: 0;
}

.mb-order-form {
    margin: 0;
}

.mb-selection-section,
.mb-description-section,
.mb-delivery-section {
    padding-inline: 18px;
}

.mb-section-title,
.mb-description-title,
.mb-delivery-card h2,
.mb-summary-card h2 {
    margin: 0;
    text-align: center;
}

.mb-section-title {
    padding: 5px 0 7px;
    font-size: clamp(25px, 3.5vw, 31px);
    font-weight: 700;
}

/* Products */
.mb-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.mb-product-card {
    position: relative;
    display: block;
    min-height: 152px;
    overflow: hidden;
    border: 2px solid #c5baa1;
    border-radius: 17px;
    background: #fbf9f3;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mb-product-card:hover {
    transform: translateY(-2px);
}

.mb-product-card.is-selected {
    border-color: #74a982;
    background: #dfead5;
    box-shadow: 0 0 0 2px rgba(105, 173, 121, 0.13);
}

.mb-product-card input,
.mb-box-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mb-product-card img {
    width: 100%;
    height: 116px;
    object-fit: contain;
    padding: 8px 12px 0;
}

.mb-product-name {
    display: block;
    padding: 1px 38px 6px 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.mb-radio-ui {
    position: absolute;
    right: 11px;
    bottom: 9px;
    width: 27px;
    height: 18px;
    border: 2px solid #b7ad96;
    border-radius: 5px;
    background: transparent;
}

.is-selected > .mb-radio-ui,
.mb-box-type.is-selected .mb-radio-ui {
    border-color: var(--mb-green);
    background: var(--mb-green);
    box-shadow: inset 0 0 0 4px #eef5ea;
}

/* Box type */
.mb-box-type-block {
    padding: 9px 0 12px;
    text-align: center;
}

.mb-box-type-block h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
}

.mb-box-type-block p {
    margin: 0 0 9px;
    color: var(--mb-muted);
    font-size: 19px;
}

.mb-box-type-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mb-box-type {
    position: relative;
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    border: 2px solid #95876c;
    border-radius: 13px;
    background: #fbf8ed;
    font-size: 21px;
    cursor: pointer;
}

.mb-box-type .mb-radio-ui {
    right: auto;
    left: 10px;
    bottom: 50%;
    width: 30px;
    height: 21px;
    transform: translateY(50%);
}

.mb-primary-button {
    display: block;
    width: min(100%, 550px);
    min-height: 54px;
    margin: 10px auto 15px;
    padding: 10px 20px;
    border: 0;
    border-radius: 13px;
    background: var(--mb-orange);
    color: #fff;
    font: inherit;
    font-size: 25px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mb-primary-button:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* Description */
.mb-description-section {
    padding-top: 4px;
    padding-bottom: 5px;
    border-top: 1px solid var(--mb-line);
    text-align: center;
}

.mb-description-title {
    font-size: 31px;
    line-height: 1.15;
}

.mb-description-intro {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.45;
}

.mb-description-list {
    margin-top: 7px;
}

.mb-description-list h3 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 800;
}

.mb-description-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-description-list li {
    position: relative;
    padding-right: 20px;
    font-size: 20px;
    line-height: 1.45;
}

.mb-description-list li::before {
    content: "-";
    position: absolute;
    right: 0;
}

/* Delivery and summary */
.mb-delivery-section {
    display: grid;
    gap: 14px;
    padding-top: 30px;
    padding-bottom: 28px;
    border-top: 1px solid var(--mb-line);
}

.mb-delivery-card {
    padding: 9px 22px 25px;
    border: 2px solid #918467;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.mb-delivery-card h2 {
    margin-bottom: 4px;
    font-size: 29px;
}

.mb-field {
    display: block;
    margin-top: 5px;
}

.mb-field > span {
    display: block;
    padding: 0 12px 2px;
    color: #625564;
    font-size: 18px;
}

.mb-field input {
    width: 100%;
    min-height: 48px;
    padding: 8px 18px;
    border: 1px solid #d3cdbf;
    border-radius: 17px;
    outline: none;
    background: #fff;
    color: var(--mb-text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-field input:focus {
    border-color: var(--mb-orange);
    box-shadow: 0 0 0 3px rgba(209, 134, 58, 0.12);
}

.mb-field.has-error input {
    border-color: #bd4747;
}

.mb-field-error {
    display: none;
    padding: 3px 12px 0;
    color: #a63434;
    font-size: 13px;
}

.mb-field.has-error .mb-field-error {
    display: block;
}

.mb-summary-card {
    padding: 21px 45px 17px;
    border-radius: 14px;
    background: var(--mb-purple-dark);
    color: #fff;
}

.mb-summary-card h2 {
    margin-bottom: 14px;
    font-size: 31px;
	color: white;
	text-align: right;
}

.mb-summary-list {
    margin: 0;
}

.mb-summary-list > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin: 7px 0;
    font-size: 20px;
}

.mb-summary-list dt {
    color: #d7cdd9;
}

.mb-summary-list dd {
    margin: 0;
    font-weight: 700;
}

.mb-summary-card .mb-primary-button {
    width: 100%;
    min-height: 49px;
    margin: 22px 0 0;
}

.mb-form-message {
    min-height: 20px;
    margin: 8px 0 0;
    text-align: center;
    font-size: 14px;
}

.mb-custom-footer {
    min-height: 105px;
    display: grid;
    place-items: center;
    border-top: 1px solid var(--mb-line);
    background: var(--mb-cream-light);
    color: #111;
    font-size: 24px;
    font-weight: 700;
}

@media (max-width: 720px) {
    #mystery-box-page {
        font-size: 15px;
    }

    .mb-shell {
        width: 100%;
        box-shadow: none;
    }

    .mb-slider,
    .mb-slide img {
        min-height: 430px;
    }

    .mb-price-strip {
        grid-template-columns: 112px minmax(0, 1fr) 112px;
        gap: 7px;
        min-height: 79px;
        padding: 8px 8px;
    }

    .mb-price-badge {
        min-height: 62px;
        border-radius: 18px;
    }

    .mb-price-badge span { font-size: 13px; }
    .mb-price-badge strong { font-size: 31px; }

    .mb-price-copy strong { font-size: 16px; }
    .mb-price-copy span { font-size: 12px; }

    .mb-content-with-ribbon {
		grid-template-columns: 55px minmax(0, 1fr);
		grid-template-areas: "ribbon content";
	}

    .mb-side-ribbon {
        min-height: 720px;
        padding: 12px 6px;
        font-size: 18px;
    }

    .mb-selection-section,
    .mb-description-section,
    .mb-delivery-section {
        padding-inline: 10px;
    }

    .mb-section-title { font-size: 18px; font-weight: 600;}

    .mb-product-grid {
        gap: 8px;
    }

    .mb-product-card {
        min-height: 125px;
        border-radius: 12px;
    }

    .mb-product-card img {
        height: 91px;
        padding: 5px 6px 0;
    }

    .mb-product-name {
        padding: 2px 28px 5px 4px;
        font-size: 11px;
    }

    .mb-radio-ui {
        right: 7px;
        bottom: 7px;
        width: 20px;
        height: 20px;
    }

    .mb-box-type-block h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px;}
    .mb-box-type-block p { font-size: 15px; }

    .mb-box-type-options {
        gap: 7px;
    }

    .mb-box-type {
        min-height: 40px;
        font-size: 15px;
    }

    .mb-box-type .mb-radio-ui {
        left: 6px;
        width: 20px;
        height: 20px;
    }

    .mb-primary-button {
        min-height: 46px;
        border-radius: 10px;
        font-size: 19px;
    }

    .mb-description-title { font-size: 25px; }
    .mb-description-intro { font-size: 16px; }
    .mb-description-list h3 { font-size: 16px; }
    .mb-description-list li { font-size: 15px; }

    .mb-delivery-card {
        padding: 8px 12px 17px;
    }

    .mb-delivery-card h2,
    .mb-summary-card h2 {
        font-size: 24px;
    }

    .mb-summary-card {
        padding: 18px 18px 15px;
    }

    .mb-summary-list > div {
        gap: 10px;
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    .mb-slider,
    .mb-slide img {
        min-height: 360px;
    }

    .mb-price-strip {
        grid-template-columns: 90px minmax(0, 1fr) 90px;
    }

    .mb-price-badge strong { font-size: 27px; }
    .mb-price-copy strong { font-size: 14px; margin-bottom: 5px; }
    .mb-price-copy span { font-size: 13px; }

    .mb-content-with-ribbon {
        grid-template-columns: 45px minmax(0, 1fr);
    }

    .mb-side-ribbon {
        font-size: 15px;
    }

    .mb-product-name {
        font-size: 10px;
    }
}




/* Remove Astra container spacing only on this landing page */
body.page-template-landing-page-template .ast-container,
body.page-template-landing-page-template .ast-container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.page-template-landing-page-template .site-content,
body.page-template-landing-page-template .content-area,
body.page-template-landing-page-template .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mystery-box-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}




/* =========================================
   SIDE RIBBON — LONG VERTICAL TEXT
========================================= */

#mystery-box-page .mb-side-ribbon {
    grid-area: ribbon;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100%;
    min-width: 0;

    padding: 18px 0 !important;

    background: #4b394f;

    color: #ffffff;
    font-size: 20px !important;
    font-weight: 500;
    line-height: 1 !important;
    letter-spacing: 1.5px;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;

    transform: rotate(180deg);

    overflow: hidden;
}



.before-discount-price::before{
	content: "";
    display: flex;
    width: 100%;
    height: 2px;
    background-color: #60605F;
    position: relative;
    left: 0;
    transform: rotate(-23deg);
    top: 14px;
}