/* Homepage-only rules. UX Builder elements use Advanced > Class with aw-home-* names. */
.aw-home {
    overflow: clip;
}

.aw-home-hero {
    isolation: isolate;
    min-height: clamp(620px, 78vh, 860px);
}

.aw-home-hero,
.aw-home-hero-copy,
.aw-home-hero-copy h1,
.aw-home-hero-copy p {
    direction: rtl;
}

.home #header .header-main {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(46, 46, 112, 0.08);
    box-shadow: 0 12px 34px rgba(46, 46, 112, 0.08);
}

@supports (backdrop-filter: blur(14px)) {
    .home #header .header-main {
        backdrop-filter: blur(14px);
        background: rgba(255, 255, 255, 0.9);
    }
}

.home #header .header-main .header-inner {
    max-width: 1200px;
}

.home #header .header-nav-main > li > a {
    color: var(--aw-color-primary, #2e2e70);
    font-family: "Tajawal", sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
}

.home #header .header-nav-main > li > a:hover,
.home #header .header-nav-main > li.active > a {
    color: var(--aw-color-accent, #db5c4a);
}

.home #header .header-nav-main .menu-item-87 > a {
    background: var(--aw-color-primary, #2e2e70);
    border-radius: 99px;
    color: #fff !important;
    line-height: 1;
    min-height: auto;
    padding: 12px 20px;
}

.home #header .header-nav-main .menu-item-87 > a::before {
    display: none;
}

.home #header .header-nav-main .menu-item-87 > a:hover {
    background: var(--aw-color-secondary, #6563bf);
    box-shadow: 0 10px 24px rgba(46, 46, 112, 0.2);
    transform: translateY(-1px);
}

.home #header #logo img {
    transition: transform 180ms ease;
}

.home #header #logo a:hover img {
    transform: scale(1.025);
}

.aw-home-hero-copy,
.aw-home-hero-copy h1,
.aw-home-hero-copy p {
    text-align: right !important;
}

.aw-home-hero-copy .text-inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.aw-home-hero-copy .button {
    margin-left: 12px;
    margin-right: 0;
}

.aw-home-hero::before {
    background: radial-gradient(circle, rgba(204, 229, 247, 0.72), transparent 68%);
    border-radius: 50%;
    content: "";
    height: min(62vw, 760px);
    inset-inline-end: -18%;
    pointer-events: none;
    position: absolute;
    top: -24%;
    width: min(62vw, 760px);
    z-index: -1;
}

.aw-home-trust .col-inner {
    background: #fff;
    border: 1px solid rgba(46, 46, 112, 0.09);
    border-radius: 18px;
    min-height: 118px;
    padding: 20px 14px 16px;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.aw-home-trust .col-inner:hover {
    border-color: rgba(101, 99, 191, 0.24);
    box-shadow: 0 14px 34px rgba(46, 46, 112, 0.09);
    transform: translateY(-3px);
}

.aw-home-trust h4 {
    color: var(--aw-color-primary, #2e2e70);
    margin-bottom: 5px;
}

.aw-home-trust p {
    color: var(--aw-color-text, #4d4d58);
    font-size: 0.93rem;
    margin-bottom: 0;
}

.aw-home-products .product-small.box {
    background: #fff;
    border: 1px solid rgba(46, 46, 112, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 38px rgba(46, 46, 112, 0.07);
    height: 100%;
    overflow: hidden;
    padding: 12px;
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.aw-home-products .product-small.box:hover {
    border-color: rgba(101, 99, 191, 0.24);
    box-shadow: 0 20px 46px rgba(46, 46, 112, 0.14);
    transform: translateY(-6px);
}

.aw-home-products .box-image {
    background: linear-gradient(145deg, #fff 0%, #f1f8fd 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.aw-home-products .box-image::after {
    background: rgba(46, 46, 112, 0.92);
    border-radius: 999px;
    color: #fff;
    content: "متوفر للتوصيل";
    font-size: 0.72rem;
    font-weight: 700;
    inset-inline-end: 12px;
    padding: 6px 10px;
    position: absolute;
    top: 12px;
    z-index: 3;
}

.aw-home-products .box-text {
    padding: 18px 8px 10px;
}

.aw-home-products .product-title a {
    color: var(--aw-color-heading, #3b3b5a);
    font-size: 1.02rem;
    font-weight: 700;
}

.aw-home-products .price,
.aw-home-products .price .amount {
    color: var(--aw-color-primary, #2e2e70);
    font-size: 1.08rem;
    font-weight: 800;
}

.aw-home-story .col-inner,
.aw-home-story .col-inner h2,
.aw-home-story .col-inner p,
.aw-home-whatsapp .col-inner,
.aw-home-whatsapp .col-inner h2,
.aw-home-whatsapp .col-inner p {
    direction: rtl;
    text-align: right;
}

.aw-story-row {
    align-items: center;
}

.aw-story-visual .col-inner {
    position: relative;
    z-index: 1;
}

.aw-story-image img {
    aspect-ratio: 3 / 2;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(46, 46, 112, 0.16);
    object-fit: cover;
    width: 100%;
}

.aw-story-visual .col-inner::after {
    background: #fff;
    border: 1px solid rgba(46, 46, 112, 0.1);
    border-radius: 16px;
    bottom: 22px;
    box-shadow: 0 14px 34px rgba(46, 46, 112, 0.14);
    color: var(--aw-color-primary, #2e2e70);
    content: "توصيل داخل الرياض";
    font-size: 0.88rem;
    font-weight: 800;
    inset-inline-start: 22px;
    padding: 11px 16px;
    position: absolute;
    z-index: 2;
}

.aw-story-copy .col-inner {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(46, 46, 112, 0.08);
    border-radius: 26px;
    box-shadow: 0 24px 58px rgba(46, 46, 112, 0.11);
    margin-inline-start: -52px;
    padding: 42px 42px 34px;
    position: relative;
    z-index: 2;
}

.aw-story-points {
    display: grid;
    gap: 12px;
    margin: 26px 0 28px;
}

.aw-story-points > div {
    background: #f7fbff;
    border: 1px solid rgba(101, 99, 191, 0.12);
    border-radius: 14px;
    padding: 13px 16px;
}

.aw-story-points strong,
.aw-story-points span {
    display: block;
}

.aw-story-points strong {
    color: var(--aw-color-primary, #2e2e70);
    font-size: 0.96rem;
    margin-bottom: 2px;
}

.aw-story-points span {
    color: var(--aw-color-text, #4d4d58);
    font-size: 0.88rem;
}

.aw-step-card .col-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(204, 229, 247, 0.2);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(15, 15, 55, 0.2);
    min-height: 225px;
    overflow: hidden;
    padding: 30px 24px 26px;
    position: relative;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.aw-step-card .col-inner::before {
    background: rgba(204, 229, 247, 0.08);
    border-radius: 50%;
    content: "";
    height: 110px;
    inset-inline-end: -34px;
    position: absolute;
    top: -42px;
    width: 110px;
}

.aw-step-card .col-inner:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(204, 229, 247, 0.38);
    transform: translateY(-5px);
}

.aw-step-card h3 {
    align-items: center;
    background: #cce5f7;
    border-radius: 50%;
    color: #2e2e70;
    display: inline-flex;
    font-size: 1rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    width: 48px;
    z-index: 1;
}

.aw-step-card h4 {
    color: #fff;
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.aw-step-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.aw-steps-heading h2 {
    color: #fff;
    margin-bottom: 10px;
}

.aw-steps-intro {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 18px;
    max-width: 620px;
}

.aw-steps-row {
    counter-reset: aw-step;
    position: relative;
}

.aw-home-whatsapp .aw-whatsapp-card {
    background: linear-gradient(125deg, #ffffff 0%, #f4fbff 66%, #e8f7ef 100%);
    border: 1px solid rgba(46, 46, 112, 0.09);
    border-radius: 28px;
    box-shadow: 0 22px 58px rgba(46, 46, 112, 0.11);
    overflow: hidden;
    padding: 24px 22px;
    position: relative;
}

.aw-home-whatsapp .aw-whatsapp-card::before {
    background: #25d366;
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    height: 180px;
    inset-inline-start: -105px;
    opacity: 0.08;
    position: absolute;
    top: -88px;
    width: 180px;
}

.aw-whatsapp-copy .col-inner {
    padding: 8px 14px;
}

.aw-whatsapp-copy .aw-eyebrow {
    color: var(--aw-color-primary, #2e2e70);
    margin-bottom: 8px;
}

.aw-whatsapp-copy .aw-section-heading {
    margin-bottom: 10px;
}

.aw-whatsapp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.aw-whatsapp-meta span {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 99px;
    color: #245e39;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 12px;
}

.aw-whatsapp-meta span::before {
    background: #25d366;
    border-radius: 50%;
    content: "";
    height: 7px;
    margin-inline-end: 7px;
    width: 7px;
}

.aw-whatsapp-action .button {
    background-color: #1fac55 !important;
    border-color: #1fac55 !important;
    box-shadow: 0 14px 30px rgba(31, 172, 85, 0.24);
    color: #fff !important;
    margin: 0;
    padding-left: 26px;
    padding-right: 26px;
}

.aw-whatsapp-action .button:hover {
    background-color: #168c45 !important;
    border-color: #168c45 !important;
    box-shadow: 0 17px 34px rgba(31, 172, 85, 0.3);
    transform: translateY(-2px);
}

.aw-whatsapp-note {
    color: rgba(77, 77, 88, 0.75);
    font-size: 0.76rem;
    margin: 10px 0 0;
    text-align: center !important;
}

@media (max-width: 849px) {
    .home #header .header-main {
        box-shadow: 0 8px 24px rgba(46, 46, 112, 0.08);
    }

    .home #header .header-main .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home #header #logo img {
        max-height: 48px;
    }

    .home #header .mobile-nav .nav-icon a,
    .home #header .mobile-nav .cart-icon strong {
        color: var(--aw-color-primary, #2e2e70);
    }

    .home #main-menu .nav-sidebar {
        direction: rtl;
    }

    .home #main-menu .nav-sidebar > li > a {
        color: var(--aw-color-primary, #2e2e70);
        font-family: "Tajawal", sans-serif;
        font-weight: 700;
        text-align: right;
    }

    .home #main-menu .nav-sidebar .menu-item-87 > a {
        background: #1fac55;
        border-radius: 14px;
        color: #fff;
        justify-content: center;
        margin: 10px 16px;
        padding: 14px 18px;
        text-align: center;
    }

    .aw-home-hero {
        min-height: 720px;
    }

    .aw-home-hero-copy,
    .aw-home-hero-copy h1,
    .aw-home-hero-copy p {
        text-align: right !important;
    }

    .aw-home-hero-mobile .text-box {
        top: 4%;
    }

    .aw-home-hero-copy .text-inner {
        align-items: stretch;
    }

    .aw-home-hero-copy .button {
        margin-bottom: 8px;
        margin-left: 6px;
        margin-right: 0;
    }

    .aw-home-trust .col {
        padding-bottom: 10px;
    }

    .aw-home-trust .col-inner {
        min-height: 112px;
        padding: 16px 10px 14px;
    }

    .aw-home-products .product-small.box {
        border-radius: 16px;
        padding: 8px;
    }

    .aw-home-products .box-text {
        padding: 13px 3px 7px;
    }

    .aw-home-products .box-image::after {
        content: "متوفر";
        font-size: 0.66rem;
        inset-inline-end: 8px;
        padding: 5px 8px;
        top: 8px;
    }

    .aw-story-image img {
        border-radius: 20px;
    }

    .aw-story-visual .col-inner::after {
        bottom: 14px;
        inset-inline-start: 14px;
    }

    .aw-story-copy .col-inner {
        border-radius: 20px;
        margin: -18px 0 0;
        padding: 28px 22px 24px;
    }

    .aw-story-points {
        margin: 22px 0 24px;
    }

    .aw-step-card .col-inner {
        min-height: auto;
        padding: 24px 20px;
    }

    .aw-step-card .col-inner:hover {
        transform: none;
    }

    .aw-home-whatsapp .aw-whatsapp-card {
        border-radius: 20px;
        margin-left: 4px;
        margin-right: 4px;
        padding: 20px 10px 16px;
    }

    .aw-whatsapp-copy .col-inner {
        padding: 4px 10px 18px;
    }

    .aw-whatsapp-meta {
        justify-content: flex-start;
    }

    .aw-whatsapp-action,
    .aw-whatsapp-action .col-inner {
        text-align: right !important;
    }

    .aw-whatsapp-note {
        text-align: right !important;
    }

}
