/* CAELI Shop Editorial Sections & Header Cleanup (CAELI-SEO-UX-022) */

/* Above the product grid: clean, left-aligned introduction */
.caeli-site .caeli-shop-header {
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
}

.caeli-site .caeli-shop-header__title {
    font-family: var(--caeli-font-heading, "Cardo", Georgia, serif);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--caeli-ink, #1b1718);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.caeli-shop-header__intro {
    max-width: 68ch;
    margin: 0 0 1.25rem;
}

.caeli-shop-header__intro p {
    font-family: var(--caeli-font-body, system-ui, -apple-system, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4a4240;
    margin: 0;
}

/* Below the product grid: editorial wrapper */
.caeli-shop-editorial-wrap {
    width: 100%;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.caeli-shop-editorial {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    color: var(--caeli-ink, #251e20);
}

/* Restrained blush / neutral backgrounds */
.caeli-shop-editorial--row1 {
    background: #f7f1ee;
}

.caeli-shop-editorial--row2 {
    background: #f4edea;
}

/* Inner 2-column grid desktop */
.caeli-shop-editorial__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 540px;
}

/* Row 1: Image Left (col 1), Text Right (col 2) */
.caeli-shop-editorial--row1 .caeli-shop-editorial__media {
    grid-column: 1;
    grid-row: 1;
}
.caeli-shop-editorial--row1 .caeli-shop-editorial__content {
    grid-column: 2;
    grid-row: 1;
}

/* Row 2: Text Left (col 1), Image Right (col 2) */
.caeli-shop-editorial--row2 .caeli-shop-editorial__content {
    grid-column: 1;
    grid-row: 1;
}
.caeli-shop-editorial--row2 .caeli-shop-editorial__media {
    grid-column: 2;
    grid-row: 1;
}

/* Full-height media container */
.caeli-shop-editorial__media {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 540px;
    background: #eee8e5;
    overflow: hidden;
}

.caeli-shop-editorial__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 20%;
}

/* Content Panel */
.caeli-shop-editorial__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(36px, 5vw, 72px) clamp(28px, 4.5vw, 64px);
}

.caeli-shop-editorial__copy {
    width: 100%;
    max-width: 440px;
    min-width: 0;
}

.caeli-shop-editorial__copy h2 {
    font-family: var(--caeli-font-heading, "Cardo", Georgia, serif);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--caeli-ink, #1b1718);
    margin: 0 0 1.125rem;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.caeli-shop-editorial__copy p {
    font-family: var(--caeli-font-body, system-ui, -apple-system, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4a4240;
    margin: 0 0 1.75rem;
}

/* Links */
.caeli-shop-editorial__links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.caeli-shop-editorial__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 11px 0;
    border-bottom: 1px solid rgb(37 30 32 / 12%);
    font-family: var(--caeli-font-body, system-ui, -apple-system, sans-serif);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--caeli-ink, #1b1718);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.caeli-shop-editorial__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
    font-size: 0.9375rem;
}

.caeli-shop-editorial__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    border-bottom-color: var(--caeli-ink, #1b1718);
}

.caeli-shop-editorial__link:hover .caeli-shop-editorial__arrow {
    transform: translateX(3px);
}

.caeli-shop-editorial__link:focus-visible {
    outline: 2px solid var(--caeli-ink, #1b1718);
    outline-offset: 4px;
}

/* Mobile responsive layout: Stack image above text on BOTH rows */
@media (max-width: 899px) {
    .caeli-shop-editorial__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .caeli-shop-editorial__media {
        order: 1 !important;
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 520px;
    }

    .caeli-shop-editorial__content {
        order: 2 !important;
        padding: clamp(32px, 7vw, 48px) clamp(20px, 5vw, 36px);
    }

    .caeli-shop-editorial__copy {
        max-width: 100%;
    }

    .caeli-shop-editorial__copy h2 {
        font-size: clamp(1.75rem, 6.5vw, 2.25rem);
        margin-bottom: 0.875rem;
    }

    .caeli-shop-editorial__copy p {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 359px) {
    .caeli-shop-editorial__content {
        padding-inline: 16px;
    }
}

.caeli-shop-editorial-wrap .caeli-guides-help {
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 1.5rem auto 0;
    color: #544c49;
}
.caeli-shop-editorial-wrap .caeli-guides-help a {
    color: var(--caeli-ink, #1b1718);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.caeli-shop-editorial-wrap .caeli-guides-help a:hover {
    color: #000000;
}
.caeli-shop-editorial-wrap .caeli-guides-help a:focus-visible {
    outline: 2px solid var(--caeli-ink, #1b1718);
    outline-offset: 3px;
}
