/**
 * Amaley Product OG Cards.
 * Fully scoped: no theme/global selectors.
 */

.amaley-product-og-grid {
    --apog-auto-min: 230px;
    display: grid;
    gap: 20px;
    align-items: start;
    justify-items: center;
    width: 100%;
}

.amaley-product-og-grid--fixed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amaley-product-og-grid--auto_fit {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--apog-auto-min)), 1fr));
}

.amaley-product-og-grid--single {
    display: flex;
    justify-content: center;
}

.amaley-product-og-card,
.amaley-product-og-card * {
    box-sizing: border-box;
}

.amaley-product-og-card {
    --apog-shell-pad-top: 8px;
    --apog-shell-pad-right: 8px;
    --apog-shell-pad-bottom: 8px;
    --apog-shell-pad-left: 8px;
    --apog-card-bg: #fffaf2;
    --apog-card-border: #eadcc9;
    --apog-body-bg: #fffaf2;
    --apog-text: #2f251f;
    --apog-muted: #5d5953;
    --apog-olive: #68722a;
    --apog-border: #d8c9af;
    --apog-orange: #cd572a;
    --apog-orange-dark: #c94419;
    --apog-img-x: 50%;
    --apog-img-y: 50%;
    --apog-transition: 260ms;
    --apog-ease: ease;
    --apog-hover-y: -5px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    position: relative;
    color: var(--apog-text);
    z-index: 0;
    transition: transform var(--apog-transition) var(--apog-ease);
}

.amaley-product-og-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    padding: var(--apog-shell-pad-top) var(--apog-shell-pad-right) var(--apog-shell-pad-bottom) var(--apog-shell-pad-left);
    background: var(--apog-card-bg);
    border: 1px solid var(--apog-card-border);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(86, 59, 32, 0.12), 0 3px 10px rgba(86, 59, 32, 0.07);
}

.amaley-product-og-card__full-link {
    position: absolute;
    inset: 0;
    z-index: 8;
    border-radius: inherit;
}

.amaley-product-og-card__media {
    position: relative;
    width: 100%;
    height: 150px;
    min-height: 0;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #ede2cf;
    flex: 0 0 auto;
}

.amaley-product-og-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--apog-img-x) var(--apog-img-y);
    transition: transform var(--apog-transition) var(--apog-ease), filter var(--apog-transition) var(--apog-ease), opacity var(--apog-transition) var(--apog-ease);
}

.amaley-product-og-card__image-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--apog-transition) var(--apog-ease), background var(--apog-transition) var(--apog-ease);
}

.amaley-product-og-card__image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font: 700 38px/1 Georgia, serif;
    color: var(--apog-olive);
}

.amaley-product-og-card__top-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(95, 103, 43, 0.88);
    color: #fffdf2;
    font: 800 12px/1.05 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(35, 40, 14, 0.22);
}

.amaley-product-og-card__top-badge-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.amaley-product-og-card__price-badge {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 66px;
    height: 66px;
    margin: -34px auto 0;
    border-radius: 999px;
    border: 2px solid rgba(255, 250, 241, 0.96);
    background: radial-gradient(circle at 35% 22%, #dd6a34 0, var(--apog-orange) 46%, var(--apog-orange-dark) 100%);
    color: #fff8ec;
    box-shadow: 0 10px 22px rgba(135, 54, 22, 0.22);
    text-align: center;
}

.amaley-product-og-card__price-badge strong {
    display: block;
    font: 700 15px/1.05 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.amaley-product-og-card__price-badge-icon {
    display: block;
    width: 21px;
    height: 12px;
    color: currentColor;
}

.amaley-product-og-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px 14px 14px;
    background: var(--apog-body-bg);
    flex: 1 1 auto;
}

.amaley-product-og-card--og_product_card_1 .amaley-product-og-card__body {
    padding-top: 12px;
}

.amaley-product-og-card--og_product_card_2 .amaley-product-og-card__body {
    padding-top: 12px;
}

.amaley-product-og-card__eyebrow {
    margin: 0 0 -2px;
    color: var(--apog-olive);
    font: 800 11.2px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.amaley-product-og-card__title {
    margin: 0;
    color: var(--apog-text);
    font-family: "Playfair Display", "Cormorant Garamond", "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.amaley-product-og-card--og_product_card_2 .amaley-product-og-card__title {
    font-size: 24px;
    line-height: 1.02;
}

.amaley-product-og-card__description {
    margin: 0;
    color: var(--apog-muted);
    font: 400 12.3px/1.34 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.amaley-product-og-card__description {
    max-width: 100%;
}

.amaley-product-og-card__info-text small,
.amaley-product-og-card__info-text strong,
.amaley-product-og-card__chip span {
    min-width: 0;
    max-width: 100%;
}

.amaley-product-og-card__info-grid {
    --apog-info-divider-color: #d8c9af;
    --apog-info-divider-width: 0.5px;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-top: 2px;
    border: 1px solid #bac09d;
    border-radius: 13px;
    background: rgba(255, 250, 241, 0.62);
}

@media (min-width: 641px) {
    .amaley-product-og-card__info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.amaley-product-og-card__info-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    min-width: 0;
    padding: 9px 8px;
    border: 0;
    box-shadow: inset 0 0 0 var(--apog-info-divider-width) var(--apog-info-divider-color);
}

.amaley-product-og-card__info-icon {
    width: 18px;
    height: 18px;
    color: var(--apog-olive);
    object-fit: contain;
}

.amaley-product-og-card__info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.amaley-product-og-card__info-text small {
    display: block;
    color: var(--apog-olive);
    font: 800 8.8px/1.12 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.amaley-product-og-card__info-text strong {
    display: block;
    color: #2b2520;
    font: 500 11.2px/1.18 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.amaley-product-og-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.apog-chip-mode-fixed .amaley-product-og-card__chips {
    display: grid;
    grid-template-columns: repeat(var(--apog-chip-cols, 2), minmax(0, 1fr));
}

.apog-chips-stretch-yes .amaley-product-og-card__chip {
    width: 100%;
}

.amaley-product-og-card__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 25px;
    padding: 5px 9px;
    border: 1px solid #d9ccb7;
    border-radius: 999px;
    background: rgba(248, 242, 232, 0.8);
    color: #322821;
    font: 500 11.2px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    transition: color var(--apog-transition) var(--apog-ease), background var(--apog-transition) var(--apog-ease), border-color var(--apog-transition) var(--apog-ease), transform var(--apog-transition) var(--apog-ease);
}

.amaley-product-og-card__chip-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--apog-olive);
    object-fit: contain;
}

.amaley-product-og-card__cta {
    position: relative;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d75a27 0%, #c9471b 100%);
    color: #fffaf2;
    font: 800 12.5px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 12px 24px rgba(159, 65, 28, 0.18);
    transition: transform var(--apog-transition) var(--apog-ease), color var(--apog-transition) var(--apog-ease), background var(--apog-transition) var(--apog-ease), box-shadow var(--apog-transition) var(--apog-ease);
}

.amaley-product-og-card__cta:hover,
.amaley-product-og-card__cta:focus {
    color: #fffaf2;
    text-decoration: none;
}

.amaley-product-og-card__cta-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.amaley-product-og-card__cta--full {
    width: 100%;
    margin-top: 2px;
}

.amaley-product-og-card__action-bar {
    display: grid;
    grid-template-columns: minmax(0, .9fr) 1px minmax(0, 1.55fr);
    align-items: center;
    gap: 11px;
    margin: auto calc(-1 * var(--apog-shell-pad-right)) calc(-1 * var(--apog-shell-pad-bottom));
    padding: 10px 12px;
    background: #f4eadc;
    border-top: 1px solid #eadcc9;
}

.amaley-product-og-card__bottom-price {
    color: var(--apog-text);
    font-family: "Playfair Display", "Cormorant Garamond", "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.amaley-product-og-card__action-divider {
    display: block;
    width: 1px;
    height: 30px;
    background: #e1d4c3;
}

.amaley-product-og-card__cta--bar {
    width: 100%;
    min-height: 34px;
    padding: 9px 12px;
    font-size: 12px;
}

.amaley-product-og-card--hover-card:hover {
    transform: translateY(var(--apog-hover-y));
}

.amaley-product-og-card--hover-image:hover .amaley-product-og-card__media img {
    transform: scale(1.045);
}

.amaley-product-og-card--hover-cta .amaley-product-og-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(159, 65, 28, 0.24);
}

.amaley-product-og-card--hover-chip .amaley-product-og-card__chip:hover {
    transform: translateY(-1px);
    background: #fff7ec;
}

.amaley-product-og-card--hover-info .amaley-product-og-card__info-cell:hover {
    background: rgba(255, 247, 235, 0.75);
}

.amaley-product-og-grid--count-3 .amaley-product-og-card,
.amaley-product-og-grid--count-4 .amaley-product-og-card,
.amaley-product-og-grid--count-5 .amaley-product-og-card,
.amaley-product-og-grid--count-6 .amaley-product-og-card {
    max-width: 260px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__media,
.amaley-product-og-grid--count-4 .amaley-product-og-card__media,
.amaley-product-og-grid--count-5 .amaley-product-og-card__media,
.amaley-product-og-grid--count-6 .amaley-product-og-card__media {
    height: 142px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__body,
.amaley-product-og-grid--count-4 .amaley-product-og-card__body,
.amaley-product-og-grid--count-5 .amaley-product-og-card__body,
.amaley-product-og-grid--count-6 .amaley-product-og-card__body {
    padding: 12px 13px 13px;
    gap: 7px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__title,
.amaley-product-og-grid--count-4 .amaley-product-og-card__title,
.amaley-product-og-grid--count-5 .amaley-product-og-card__title,
.amaley-product-og-grid--count-6 .amaley-product-og-card__title {
    font-size: 22px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__description,
.amaley-product-og-grid--count-4 .amaley-product-og-card__description,
.amaley-product-og-grid--count-5 .amaley-product-og-card__description,
.amaley-product-og-grid--count-6 .amaley-product-og-card__description {
    font-size: 11.5px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__info-cell,
.amaley-product-og-grid--count-4 .amaley-product-og-card__info-cell,
.amaley-product-og-grid--count-5 .amaley-product-og-card__info-cell,
.amaley-product-og-grid--count-6 .amaley-product-og-card__info-cell {
    padding: 8px 7px;
    gap: 6px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__price-badge,
.amaley-product-og-grid--count-4 .amaley-product-og-card__price-badge,
.amaley-product-og-grid--count-5 .amaley-product-og-card__price-badge,
.amaley-product-og-grid--count-6 .amaley-product-og-card__price-badge {
    width: 62px;
    height: 62px;
    margin-top: -32px;
}

.amaley-product-og-grid--count-3 .amaley-product-og-card__price-badge strong,
.amaley-product-og-grid--count-4 .amaley-product-og-card__price-badge strong,
.amaley-product-og-grid--count-5 .amaley-product-og-card__price-badge strong,
.amaley-product-og-grid--count-6 .amaley-product-og-card__price-badge strong {
    font-size: 14px;
}

@media (max-width: 1024px) {
    .amaley-product-og-grid--fixed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .amaley-product-og-grid,
    .amaley-product-og-grid--fixed,
    .amaley-product-og-grid--auto_fit {
        grid-template-columns: 1fr;
    }

    .amaley-product-og-card {
        max-width: min(100%, 320px);
    }

    .amaley-product-og-card__media {
        height: 180px;
    }

    
.amaley-product-og-card__description {
    max-width: 100%;
}

.amaley-product-og-card__info-text small,
.amaley-product-og-card__info-text strong,
.amaley-product-og-card__chip span {
    min-width: 0;
    max-width: 100%;
}

    .amaley-product-og-card__action-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .amaley-product-og-card__action-divider {
        display: none;
    }
}

/* Product OG control bindings added in v0.4.206 */
.amaley-product-og-card {
    --apog-image-hover-scale: 1.045;
    --apog-cta-hover-y: -1px;
}

.amaley-product-og-card--hover-image:hover .amaley-product-og-card__media img {
    transform: scale(var(--apog-image-hover-scale));
}

.amaley-product-og-card--hover-cta .amaley-product-og-card__cta:hover {
    transform: translateY(var(--apog-cta-hover-y));
}

.apog-info-icon-pos-top .amaley-product-og-card__info-cell {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
}

.apog-info-text-fit_line .amaley-product-og-card__info-text,
.apog-info-text-fit_line .amaley-product-og-card__info-text small,
.apog-info-text-fit_line .amaley-product-og-card__info-text strong,
.apog-chip-text-fit_line .amaley-product-og-card__chip span {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.apog-info-text-ellipsis .amaley-product-og-card__info-text,
.apog-info-text-ellipsis .amaley-product-og-card__info-text small,
.apog-info-text-ellipsis .amaley-product-og-card__info-text strong,
.apog-chip-text-ellipsis .amaley-product-og-card__chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apog-info-text-normal_wrap .amaley-product-og-card__info-text small,
.apog-info-text-normal_wrap .amaley-product-og-card__info-text strong,
.apog-chip-text-normal_wrap .amaley-product-og-card__chip span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.amaley-product-og-card__price-badge svg,
.amaley-product-og-card__top-badge svg,
.amaley-product-og-card__info-icon svg,
.amaley-product-og-card__chip-icon svg,
.amaley-product-og-card__cta-icon svg {
    width: 100%;
    height: 100%;
}
