/**
 * Amaley Product OG Listing v2.
 * Mobile-first shared layout engine for contextual and legacy v2 Product listings.
 * Product card internals remain owned by the centralized Product OG card CSS.
 */

.amaley-plv2,
.amaley-plv2 * {
    box-sizing: border-box;
}

.amaley-plv2 {
    --aplv2-cols: var(--aplv2-cols-m, 1);
    --aplv2-track-width: var(--aplv2-track-m, 260px);
    --aplv2-column-gap: var(--aplv2-col-gap-m, 14px);
    --aplv2-row-gap: var(--aplv2-row-gap-m, 18px);
    --aplv2-grid-max: var(--aplv2-grid-max-m, 260px);
    --aplv2-transform-x: 0px;
    --aplv2-transform-y: 0px;
    --aplv2-transform-scale: 1;
    --aplv2-transform-rotate: 0deg;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #33251f;
    font-family: "Lato", Arial, sans-serif;
    transform: translate(var(--aplv2-transform-x), var(--aplv2-transform-y)) scale(var(--aplv2-transform-scale)) rotate(var(--aplv2-transform-rotate));
    transition-property: transform, opacity, background-color, border-color, box-shadow;
    transition-timing-function: ease;
}

.amaley-plv2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
}

.amaley-plv2__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin-inline: auto;
    gap: 30px;
}

.amaley-plv2__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.amaley-plv2__header-copy {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.amaley-plv2__eyebrow,
.amaley-plv2__title,
.amaley-plv2__description,
.amaley-plv2__link,
.amaley-plv2__link .elementor-icon,
.amaley-plv2__listing,
.amaley-plv2__item {
    --aplv2-transform-x: 0px;
    --aplv2-transform-y: 0px;
    --aplv2-transform-scale: 1;
    --aplv2-transform-rotate: 0deg;
    transform: translate(var(--aplv2-transform-x), var(--aplv2-transform-y)) scale(var(--aplv2-transform-scale)) rotate(var(--aplv2-transform-rotate));
    transition-property: transform, opacity, color, background-color, border-color, box-shadow;
    transition-timing-function: ease;
}

.amaley-plv2__eyebrow {
    margin: 0 0 8px;
    color: #a5492d;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.amaley-plv2__title {
    margin: 0;
    color: #33251f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.amaley-plv2__description {
    max-width: 720px;
    margin-top: 12px;
    color: #75675f;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.amaley-plv2__description p {
    margin: 0;
}

.amaley-plv2__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: #a5492d;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    align-self: flex-start;
}

.amaley-plv2__link .elementor-icon {
    --aplv2-link-icon-size: 14px;
    --aplv2-link-icon-box-width: 18px;
    --aplv2-link-icon-box-height: 18px;
    display: inline-grid;
    flex: 0 0 var(--aplv2-link-icon-box-width);
    place-items: center;
    width: var(--aplv2-link-icon-box-width);
    height: var(--aplv2-link-icon-box-height);
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: var(--aplv2-link-icon-size);
    line-height: 1;
    vertical-align: middle;
}

.amaley-plv2__link .elementor-icon i {
    display: block;
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

.amaley-plv2__link .elementor-icon svg {
    display: block;
    width: var(--aplv2-link-icon-size);
    height: var(--aplv2-link-icon-size);
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.amaley-plv2__listing {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.amaley-plv2__listing:focus {
    outline: none;
}

.amaley-plv2__listing:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.amaley-plv2__viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.amaley-plv2__track {
    display: grid;
    grid-template-columns: repeat(var(--aplv2-cols), minmax(0, 1fr));
    align-items: stretch;
    column-gap: var(--aplv2-column-gap);
    row-gap: var(--aplv2-row-gap);
    width: min(100%, var(--aplv2-grid-max));
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    transition-property: transform;
    transition-duration: var(--aplv2-transition, 320ms);
    transition-timing-function: ease;
    will-change: transform;
}

.amaley-plv2--align-start .amaley-plv2__track {
    margin-left: 0;
    margin-right: auto;
}

.amaley-plv2--align-center .amaley-plv2__track {
    margin-left: auto;
    margin-right: auto;
}

.amaley-plv2--align-end .amaley-plv2__track {
    margin-left: auto;
    margin-right: 0;
}

.amaley-plv2__item {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.amaley-plv2__item[hidden] {
    display: none;
}

.amaley-plv2__item-shift {
    display: flex;
    align-items: inherit;
    justify-content: inherit;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transform: translateX(var(--aplv2-last-row-shift, 0px));
}

.amaley-plv2__item-shift > .amaley-product-og-card,
.amaley-plv2__item-shift > .amaley-ogc,
.amaley-plv2__item-shift > .amaley-shg-og-card,
.amaley-plv2__item-shift > .amaley-member-og-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.amaley-plv2--equal-height .amaley-plv2__item {
    align-self: stretch;
}

.amaley-plv2--equal-height .amaley-plv2__item-shift,
.amaley-plv2--equal-height .amaley-plv2__item-shift > .amaley-product-og-card,
.amaley-plv2--equal-height .amaley-plv2__item-shift > .amaley-product-og-card > .amaley-product-og-card__inner,
.amaley-plv2--equal-height .amaley-plv2__item-shift > .amaley-ogc,
.amaley-plv2--equal-height .amaley-plv2__item-shift > .amaley-shg-og-card,
.amaley-plv2--equal-height .amaley-plv2__item-shift > .amaley-member-og-card {
    height: 100%;
}

.amaley-plv2--mode-stack .amaley-plv2__track {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, var(--aplv2-track-width));
}

.amaley-plv2--mode-carousel .amaley-plv2__viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.amaley-plv2--mode-carousel .amaley-plv2__track {
    display: flex;
    align-items: stretch;
    width: max-content;
    max-width: none;
    margin-inline: 0;
    column-gap: var(--aplv2-column-gap);
    row-gap: 0;
}

.amaley-plv2--mode-carousel .amaley-plv2__item {
    flex: 0 0 var(--aplv2-slide-basis, var(--aplv2-track-width));
    width: var(--aplv2-slide-basis, var(--aplv2-track-width));
    max-width: var(--aplv2-slide-basis, var(--aplv2-track-width));
}

.amaley-plv2__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dfcdb8;
    border-radius: 50%;
    background: #fffaf2;
    color: #5d392c;
    box-shadow: 0 8px 22px rgba(74, 47, 33, .12);
    font: 500 20px/1 Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition-property: color, background-color, border-color, box-shadow, opacity, transform;
    transition-timing-function: ease;
}

.amaley-plv2--show-arrows .amaley-plv2__arrow {
    display: grid;
}

.amaley-plv2__arrow--prev {
    left: 6px;
}

.amaley-plv2__arrow--next {
    right: 6px;
}

.amaley-plv2__arrow:focus-visible,
.amaley-plv2__page-button:focus-visible,
.amaley-plv2__dot:focus-visible,
.amaley-plv2__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.amaley-plv2__arrow:disabled,
.amaley-plv2__page-button:disabled {
    cursor: not-allowed;
}

.amaley-plv2__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.amaley-plv2--show-dots .amaley-plv2__dots {
    display: flex;
}

.amaley-plv2__dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8c8b6;
    cursor: pointer;
    transition-property: width, background-color, opacity, transform;
    transition-timing-function: ease;
}

.amaley-plv2__dot[aria-current="true"] {
    width: 24px;
    background: #a5492d;
}

.amaley-plv2__pagination {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 28px;
}

.amaley-plv2--show-pagination .amaley-plv2__pagination {
    display: flex;
}

.amaley-plv2__page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dfcdb8;
    border-radius: 10px;
    background: #fffaf2;
    color: #4b3329;
    font: 700 12px/1 "Lato", Arial, sans-serif;
    cursor: pointer;
    transition-property: color, background-color, border-color, box-shadow, opacity, transform;
    transition-timing-function: ease;
}

.amaley-plv2__page-button[aria-current="page"] {
    border-color: #a5492d;
    background: #a5492d;
    color: #fff;
}

.amaley-plv2__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 160px;
    padding: 28px;
    border: 1px dashed #dfcdb8;
    border-radius: 16px;
    background: rgba(255, 250, 242, .66);
    color: #75675f;
    text-align: center;
}

.amaley-plv2__empty p {
    margin: 0;
}

.amaley-plv2__empty .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a5492d;
    font-size: 32px;
}

.amaley-plv2__empty svg {
    display: block;
    width: 1em;
    height: 1em;
    color: currentColor;
}

@media (min-width: 768px) {
    .amaley-plv2 {
        --aplv2-cols: var(--aplv2-cols-t, 2);
        --aplv2-track-width: var(--aplv2-track-t, 260px);
        --aplv2-column-gap: var(--aplv2-col-gap-t, 18px);
        --aplv2-row-gap: var(--aplv2-row-gap-t, 22px);
        --aplv2-grid-max: var(--aplv2-grid-max-t, 538px);
    }
}

@media (min-width: 1025px) {
    .amaley-plv2 {
        --aplv2-cols: var(--aplv2-cols-d, 4);
        --aplv2-track-width: var(--aplv2-track-d, 260px);
        --aplv2-column-gap: var(--aplv2-col-gap-d, 20px);
        --aplv2-row-gap: var(--aplv2-row-gap-d, 28px);
        --aplv2-grid-max: var(--aplv2-grid-max-d, 1100px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .amaley-plv2,
    .amaley-plv2 *,
    .amaley-plv2 *::before,
    .amaley-plv2 *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* Universal mixed listing: clearly separated groups or accessible tabs. */
.amaley-ul-mixed,
.amaley-ul-mixed * {
    box-sizing: border-box;
}

.amaley-ul-mixed {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.amaley-ul-mixed__container,
.amaley-ul-mixed__groups,
.amaley-ul-mixed__group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.amaley-ul-mixed__groups {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.amaley-ul-mixed--tabs .amaley-ul-mixed__groups {
    gap: 0;
}

.amaley-ul-mixed__group[hidden] {
    display: none;
}

.amaley-ul-mixed__group-head {
    margin-bottom: 24px;
}

.amaley-ul-mixed__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
}

.amaley-ul-mixed__tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid #d8c9ad;
    border-radius: 999px;
    background: #fffaf1;
    color: #33251f;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.amaley-ul-mixed__tab:hover,
.amaley-ul-mixed__tab:focus-visible {
    border-color: #c2880a;
    color: #6e4810;
    transform: translateY(-1px);
}

.amaley-ul-mixed__tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.amaley-ul-mixed__tab[aria-selected="true"] {
    border-color: #c2880a;
    background: #c2880a;
    color: #fffaf1;
    box-shadow: 0 8px 22px rgba(51, 37, 31, 0.14);
}

@media (max-width: 767px) {
    .amaley-ul-mixed__groups {
        gap: 30px;
    }

    .amaley-ul-mixed__group-head {
        margin-bottom: 18px;
    }

    .amaley-ul-mixed__tabs {
        gap: 8px;
        margin-bottom: 22px;
    }

    .amaley-ul-mixed__tab {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding-inline: 12px;
    }
}

/* Member card consistency inside the shared Contextual / Universal listing engine.
 * Centralized Member card markup and controls remain unchanged; this bridge only
 * supplies the grid context that the Member card's responsive rules expect. */
.amaley-plv2--card-family-member .amaley-plv2__item {
    container-type: inline-size;
}

.amaley-plv2--card-family-member .amaley-member-og-card__info-text small,
.amaley-plv2--card-family-member .amaley-member-og-card__info-text strong {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.amaley-plv2--card-family-member .amaley-member-og-card__content:not(:has(> .amaley-member-og-card__tags)) > .amaley-member-og-card__cta {
    margin-top: auto;
}

@container (max-width: 249px) {
    .amaley-plv2--card-family-member .amaley-member-og-card--info-auto-stack-on .amaley-member-og-card__info-grid {
        --amemog-info-cols: 1;
        gap: min(var(--amemog-info-gap), 12px);
    }

    .amaley-plv2--card-family-member .amaley-member-og-card--info-auto-stack-on .amaley-member-og-card__info-item {
        width: fit-content;
        max-width: 100%;
        justify-self: center;
    }
}

