/* =========================================================
   ELEA Custom Frontend
   ========================================================= */

:root {
    --elea-peach: #D99A7F;
    --elea-yellow: #E8D85A;
    --elea-cream: #F6EEE5;
    --elea-pink: #F3CFC7;
    --elea-brown: #5B3A2E;
    --elea-warm-cream: #FFF7F2;
}

/* =========================================================
   ELEA Hero
   ========================================================= */

.elea-hero {
    position: relative;
    width: 100%;
    min-height: 760px;
    height: 82vh;
    overflow: hidden;
    background: var(--elea-cream);
}

.elea-hero__media {
    position: absolute;
    inset: 0;
}

.elea-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.elea-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(48, 30, 24, 0.52) 0%,
        rgba(48, 30, 24, 0.25) 42%,
        rgba(48, 30, 24, 0.05) 70%,
        rgba(48, 30, 24, 0) 100%
    );
}

.elea-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 6%;
    color: #fff;
}

.elea-hero__eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.elea-hero__title {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 6vw, 94px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.elea-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
    padding-bottom: 7px;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity 0.25s ease;
}

.elea-hero__cta:hover {
    color: #fff !important;
    opacity: 0.72;
}

@media (max-width: 767px) {
    .elea-hero {
        min-height: 560px;
        height: 70vh;
    }

    .elea-hero__content {
        min-height: 560px;
        justify-content: flex-end;
        padding: 44px 24px;
    }

    .elea-hero__overlay {
        background: linear-gradient(
            0deg,
            rgba(48, 30, 24, 0.58) 0%,
            rgba(48, 30, 24, 0.18) 58%,
            rgba(48, 30, 24, 0.04) 100%
        );
    }

    .elea-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .elea-hero__title {
        max-width: 420px;
        font-size: clamp(44px, 13vw, 64px);
        line-height: 1;
    }

    .elea-hero__cta {
        margin-top: 28px;
        font-size: 11px;
    }
}

/* Prevent theme heading styles from affecting ELEA hero */
.aiz-elea .elea-hero__title {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
}


/* ELEA Abaya Edit */
.elea-edit {
    background: var(--elea-warm-cream);
    padding: 100px 0 110px;
}

.elea-edit__inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.elea-edit__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.elea-section-eyebrow {
    margin: 0 0 12px;
    color: var(--elea-peach);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.elea-section-title {
    margin: 0;
    color: var(--elea-brown);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(40px, 4vw, 62px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
}

.elea-section-subtitle {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(91, 58, 46, .72);
    font-size: 14px;
    line-height: 1.7;
}

.elea-text-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--elea-brown);
    color: var(--elea-brown);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

.elea-text-link:hover {
    color: var(--elea-brown);
    opacity: .6;
}

.elea-edit__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.elea-edit-card {
    min-width: 0;
}

.elea-edit-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--elea-cream);
}

.elea-edit-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.6,.2,1);
}

.elea-edit-card:hover .elea-edit-card__image {
    transform: scale(1.035);
}

.elea-edit-card__content {
    padding-top: 18px;
}

.elea-edit-card__title {
    display: block;
    color: var(--elea-brown);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.15;
}

.elea-edit-card__title:hover {
    color: var(--elea-peach);
}

.elea-edit-card__subtitle {
    margin: 7px 0 0;
    color: rgba(91, 58, 46, .62);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1199px) {
    .elea-edit__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 18px;
    }
}

@media (max-width: 767px) {
    .elea-edit {
        padding: 70px 0 76px;
    }

    .elea-edit__inner {
        width: calc(100% - 32px);
    }

    .elea-edit__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 32px;
    }

    .elea-section-title {
        font-size: 42px;
    }

    .elea-edit__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .elea-edit-card__content {
        padding-top: 13px;
    }

    .elea-edit-card__title {
        font-size: 19px;
    }

    .elea-edit-card__subtitle {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .elea-section-title {
        font-size: 37px;
    }
}


/* ELEA Product Sections */
.elea-products {
    padding: 105px 0;
}

.elea-ready-now {
    background: #ffffff;
}

.elea-new-in {
    background: var(--elea-cream);
}

.elea-products__inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.elea-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.elea-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.elea-product-card {
    min-width: 0;
}

.elea-product-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--elea-warm-cream);
}

.elea-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.6,.2,1);
}

.elea-product-card:hover .elea-product-card__image {
    transform: scale(1.035);
}

.elea-product-card__badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    background: rgba(255,247,242,.94);
    color: var(--elea-brown);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .14em;
}

.elea-product-card__content {
    padding-top: 17px;
}

.elea-product-card__title {
    display: block;
    overflow: hidden;
    color: var(--elea-brown);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elea-product-card__title:hover {
    color: var(--elea-peach);
}

.elea-product-card__price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    color: var(--elea-brown);
    font-size: 13px;
    font-weight: 600;
}

.elea-product-card__price del {
    color: rgba(91,58,46,.45);
    font-size: 11px;
    font-weight: 400;
}

.elea-load-more {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.elea-outline-button {
    min-width: 220px;
    padding: 14px 28px;
    border: 1px solid var(--elea-brown);
    background: transparent;
    color: var(--elea-brown);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: all .25s ease;
}

.elea-outline-button:hover {
    background: var(--elea-brown);
    color: var(--elea-warm-cream);
}

/* Adapt AJAX-loaded New In products to ELEA */
.elea-new-in #section_newest {
    color: var(--elea-brown);
}

.elea-new-in #section_newest .product-title {
    color: var(--elea-brown) !important;
    font-weight: 500 !important;
}

.elea-new-in #section_newest img {
    transition: transform .6s ease;
}

.elea-new-in #section_newest a:hover img {
    transform: scale(1.025);
}

@media (max-width: 1199px) {
    .elea-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

@media (max-width: 767px) {
    .elea-products {
        padding: 72px 0;
    }

    .elea-products__inner {
        width: calc(100% - 32px);
    }

    .elea-products__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 32px;
    }

    .elea-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 12px;
    }

    .elea-product-card__badge {
        top: 9px;
        left: 9px;
        padding: 6px 8px;
        font-size: 8px;
    }

    .elea-product-card__content {
        padding-top: 12px;
    }

    .elea-product-card__title {
        font-size: 13px;
    }

    .elea-product-card__price {
        font-size: 12px;
    }
}


/* ELEA Designers */
.elea-designers {
    padding: 110px 0;
    background: var(--elea-warm-cream);
}

.elea-designers__inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.elea-designers__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.elea-designers__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.elea-designer-card {
    min-width: 0;
}

.elea-designer-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1.08;
    padding: 26px;
    background: #fff;
}

.elea-designer-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
}

.elea-designer-card:hover .elea-designer-card__image {
    transform: scale(1.04);
}

.elea-designer-card__content {
    padding-top: 17px;
}

.elea-designer-card__name {
    display: block;
    overflow: hidden;
    color: var(--elea-brown);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elea-designer-card__name:hover {
    color: var(--elea-peach);
}

.elea-designer-card__link {
    display: inline-flex;
    gap: 7px;
    margin-top: 8px;
    color: rgba(91,58,46,.62);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
}

.elea-designer-card__link:hover {
    color: var(--elea-brown);
}


/* Designer CTA */
.elea-designer-cta {
    padding: 120px 40px;
    background: var(--elea-pink);
}

.elea-designer-cta__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.elea-designer-cta__content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.elea-designer-cta__title {
    margin: 0;
    color: var(--elea-brown);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.035em;
}

.elea-designer-cta__text {
    max-width: 620px;
    margin: 24px auto 0;
    color: rgba(91,58,46,.76);
    font-size: 15px;
    line-height: 1.75;
}

.elea-designer-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 16px 27px;
    background: var(--elea-brown);
    color: var(--elea-warm-cream);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

.elea-designer-cta__button:hover {
    color: var(--elea-warm-cream);
    opacity: .82;
}

@media (max-width: 1199px) {
    .elea-designers__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

@media (max-width: 767px) {
    .elea-designers {
        padding: 72px 0;
    }

    .elea-designers__inner {
        width: calc(100% - 32px);
    }

    .elea-designers__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .elea-designers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 12px;
    }

    .elea-designer-card__image-wrap {
        padding: 18px;
    }

    .elea-designer-card__name {
        font-size: 19px;
    }

    .elea-designer-cta {
        padding: 82px 24px;
    }

    .elea-designer-cta__title {
        font-size: 48px;
    }

    .elea-designer-cta__text {
        font-size: 14px;
    }
}


/* =========================================================
   ELEA Header
   ========================================================= */

.aiz-elea .aiz-top-menu-sidebar {
    display: none !important;
}

.elea-site-header {
    position: sticky;
    top: 0;
    z-index: 1025;
    width: 100%;
    background: rgba(255, 247, 242, .97);
    border-bottom: 1px solid rgba(91, 58, 46, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.elea-header__inner {
    position: relative;
    width: min(1440px, calc(100% - 80px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.elea-header__nav--left {
    justify-content: flex-start;
}

.elea-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.elea-header__right {
    margin-left: auto;
}

.elea-header__nav {
    align-items: center;
    gap: 31px;
}

.elea-header__nav--right {
    justify-content: flex-end;
}

.elea-header__nav a {
    position: relative;
    padding: 6px 0;
    color: var(--elea-brown);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .17em;
    line-height: 1;
    text-transform: uppercase;
}

.elea-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--elea-brown);
    transition: width .25s ease;
}

.elea-header__nav a:hover {
    color: var(--elea-brown);
}

.elea-header__nav a:hover::after {
    width: 100%;
}

.elea-header__logo {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elea-header__logo img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 48px;
    object-fit: contain;
}

.elea-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
}

.elea-header__actions {
    display: flex;
    align-items: center;
    gap: 17px;
}

.elea-header-icon {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--elea-brown);
    align-items: center;
    justify-content: center;
}

a.elea-header-icon {
    display: flex;
}

.elea-header-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.elea-header-icon:hover {
    color: var(--elea-peach);
}


/* Mobile Menu Trigger */
.elea-menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.elea-menu-trigger span {
    display: block;
    width: 19px;
    height: 1px;
    background: var(--elea-brown);
}

.elea-menu-trigger span:nth-child(2) {
    width: 14px;
}


/* ELEA Mobile Drawer */
.elea-mobile-menu__panel {
    width: min(88vw, 390px) !important;
    padding: 0 !important;
    background: var(--elea-warm-cream);
}

.elea-mobile-menu__top {
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(91,58,46,.12);
}

.elea-mobile-menu__title {
    color: var(--elea-brown);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
}

.elea-mobile-menu__close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--elea-brown);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 200;
    line-height: 1;
}

.elea-mobile-search {
    margin: 26px 24px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(91,58,46,.4);
}

.elea-mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--elea-brown);
    font-size: 14px;
}

.elea-mobile-search input::placeholder {
    color: rgba(91,58,46,.48);
}

.elea-mobile-search button {
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--elea-brown);
    font-size: 18px;
}

.elea-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 30px;
}

.elea-mobile-nav a {
    padding: 17px 0;
    border-bottom: 1px solid rgba(91,58,46,.09);
    color: var(--elea-brown);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
}

.elea-mobile-menu__footer {
    margin: 5px 24px 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(91,58,46,.15);
}

.elea-mobile-account,
.elea-mobile-designer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--elea-brown);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
}

.elea-mobile-designer-link {
    margin-top: 25px;
    padding: 16px 18px;
    justify-content: center;
    background: var(--elea-brown);
    color: var(--elea-warm-cream);
    text-align: center;
}

.elea-mobile-designer-link:hover {
    color: var(--elea-warm-cream);
}


/* Header Tablet / Mobile */
@media (max-width: 991px) {
    .elea-header__inner {
        position: relative;
        width: calc(100% - 32px);
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .elea-header__mobile-left {
        justify-self: start;
    }

    .elea-header__logo img {
        max-width: 148px;
        max-height: 48px;
    }

    .elea-header__right {
        justify-self: end;
        gap: 0;
    }

    .elea-header__actions {
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .elea-header__inner {
        width: calc(100% - 24px);
    }

    .elea-header__logo img {
        max-width: 132px;
        max-height: 44px;
    }

    .elea-header__actions {
        gap: 11px;
    }
}

/* ELEA Header Final Desktop Alignment */
@media (min-width: 992px) {

    .elea-header__inner {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .elea-header__nav--left {
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    .elea-header__logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }

    .elea-header__right {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
}

/* ELEA Mobile Center Alignment */
@media (max-width: 767px) {

    /* Hero */
    .elea-hero__content {
        align-items: center !important;
        text-align: center !important;
    }

    .elea-hero__title {
        margin-left: auto;
        margin-right: auto;
    }

    .elea-hero__cta {
        justify-content: center;
    }

    /* READY NOW + NEW IN */
    .elea-products__header {
        align-items: center !important;
        text-align: center !important;
    }

    .elea-products__header > div {
        width: 100%;
        text-align: center;
    }

    /* SHOP THE ABAYA EDIT */
    .elea-edit__header {
        align-items: center !important;
        text-align: center !important;
    }

    .elea-edit__header > div {
        width: 100%;
        text-align: center;
    }

    /* MEET THE DESIGNERS */
    .elea-designers__header {
        align-items: center !important;
        text-align: center !important;
    }

    .elea-designers__header > div {
        width: 100%;
        text-align: center;
    }

    /* Shared subtitles */
    .elea-section-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    /* Section links */
    .elea-products__header .elea-text-link,
    .elea-edit__header .elea-text-link,
    .elea-designers__header .elea-text-link {
        align-self: center;
        justify-content: center;
    }
}
