/**
 * Baseframe 0.19.5 — reusable components, mobile first.
 */

.bf-products {
    margin: 1.5rem 0 0;
}

.bf-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: .9rem;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    background: #fff;
}

.bf-product__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: .85rem;
}

.bf-product__image-link {
    display: block;
    width: 100%;
}

.bf-product__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 175px;
    object-fit: contain;
    margin: 0 auto;
}

.bf-product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bf-product__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bf-product__rating,
.bf-product__price {
    margin-top: .65rem;
}

.bf-product__actions {
    margin-top: auto;
    padding-top: .85rem;
}

.bf-product__reviews {
    margin-left: .4rem;
}

.bf-products,
.bf-aawp-products,
.bf-aawp-loop {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.bf-aawp-loop > .bf-product {
    width: auto;
    max-width: none;
    margin: 0;
}

.bf-products > .bf-aawp-loop {
    width: 100%;
}

/* Tablet / desktop: product count controls columns. */
@media (min-width: 769px) {
    .bf-products {
        margin-top: 2rem;
    }

    .bf-products,
    .bf-aawp-products,
    .bf-aawp-loop {
        gap: 1.5rem;
    }

    .bf-products--2,
    .bf-aawp-products--2,
    .bf-aawp-loop--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bf-products--3,
    .bf-aawp-products--3,
    .bf-aawp-loop--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bf-products--4,
    .bf-aawp-products--4,
    .bf-aawp-loop--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .bf-aawp-loop--4 .bf-product {
        padding: .8rem;
    }

    .bf-aawp-loop--4 .bf-product__media {
        min-height: 185px;
    }

    .bf-aawp-loop--4 .bf-product__image {
        height: 175px;
    }

    .bf-product {
        padding: .78rem;
        border-radius: 14px;
    }

    .bf-product__media {
        min-height: 230px;
        margin-bottom: 1rem;
    }

    .bf-product__image {
        height: 175px;
    }
}


/* ==========================================================
   Early solution — 0.19.6
   Desktop: product | content | action
   Mobile : product / content / action
   ========================================================== */

.bf-early-solutions {
    display: grid;
    gap: .7rem;
    margin: 1rem 0 1.35rem;
}

.bf-early-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(20, 35, 30, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .045);
}

.bf-early-item > div {
    min-width: 0;
    padding: .78rem;
}

.bf-early-item__product {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 165px;
}

.bf-early-item__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bf-early-item__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 160px;
    margin: 0 auto;
    object-fit: contain;
}

.bf-early-item__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bf-early-item__label {
    display: inline-block;
    width: fit-content;
    margin: 0 0 .4rem;
    padding: .24rem .5rem;
    border-radius: 999px;
    background: #eef3ef;
    font-size: .7rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .045em;
}

.bf-early-item__heading {
    margin: 0 0 .4rem;
    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 700;
}

.bf-early-item__need,
.bf-early-item__fit,
.bf-early-item__product-title,
.bf-early-item__disclosure {
    margin: 0;
    line-height: 1.42;
}

.bf-early-item__need {
    font-size: .94rem;
}

.bf-early-item__fit {
    margin-top: .45rem;
    font-size: .84rem;
    color: #4b5563;
}

.bf-early-item__action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f7f6f1;
}

.bf-early-item__price {
    margin-bottom: .5rem;
    font-size: 1.22rem;
    line-height: 1.15;
    font-weight: 700;
}

.bf-early-item__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: .58rem .8rem;
    border-radius: 9px;
    background: #f4c84a;
    color: #171717;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.bf-early-item__button::after {
    content: " →";
    margin-left: .4rem;
}

.bf-early-item__button:hover,
.bf-early-item__button:focus {
    color: #171717;
    text-decoration: none;
}

.bf-early-item__product-title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: .55rem;
    font-size: .76rem;
    color: #4b5563;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bf-early-item__disclosure {
    margin-top: .5rem;
    font-size: .7rem;
    color: #666;
}

@media (min-width: 769px) {
    .bf-early-solutions {
        margin-top: 1.15rem;
        margin-bottom: 1.4rem;
    }

    .bf-early-item {
        grid-template-columns:
            minmax(180px, .9fr)
            minmax(300px, 1.65fr)
            minmax(190px, .85fr);
    }

    .bf-early-item > div + div {
        border-left: 1px solid rgba(20, 35, 30, .09);
    }

    .bf-early-item > div {
        padding: .78rem .9rem;
    }

    .bf-early-item__product {
        min-height: 170px;
    }

    .bf-early-item__image {
        height: 165px;
    }
}

@media (min-width: 1100px) {
    .bf-early-item {
        grid-template-columns:
            minmax(210px, 1fr)
            minmax(360px, 1.75fr)
            minmax(210px, .9fr);
    }

    .bf-early-item__image {
        height: 175px;
    }
}


/* Editorial reuse of the featured image near the article ending. */
.bf-editorial-featured {
    margin: 1.5rem 0;
}

.bf-editorial-featured__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .bf-editorial-featured {
        margin: 1rem 0;
    }

    .bf-early-item__product {
        min-height: 145px;
    }

    .bf-early-item__image {
        height: 145px;
    }
}


/* 0.20.1 — denser editorial/product composition. */
.bf-section {
    padding-left: clamp(.8rem, 2vw, 1.35rem);
    padding-right: clamp(.8rem, 2vw, 1.35rem);
}

.bf-products {
    gap: .7rem;
}

.bf-aawp-loop {
    gap: .7rem;
}

.bf-aawp-loop .bf-product {
    padding: .55rem;
}

.bf-aawp-loop .bf-product__media {
    min-height: 155px;
    margin-bottom: .45rem;
}

.bf-aawp-loop .bf-product__image {
    width: 100%;
    height: 155px;
    max-width: none;
    object-fit: contain;
}

.bf-aawp-loop--4 {
    gap: .65rem;
}

.bf-aawp-loop--4 .bf-product {
    padding: .45rem;
}

.bf-aawp-loop--4 .bf-product__media {
    min-height: 145px;
}

.bf-aawp-loop--4 .bf-product__image {
    height: 145px;
}

@media (max-width: 768px) {
    .bf-section {
        padding-left: .7rem;
        padding-right: .7rem;
    }

    .bf-aawp-loop .bf-product {
        padding: .45rem;
    }
}

/* Editorial AAWP visual: independent from product-card image sizing. */
.bf-amazon-visual__link {
    display: block;
    width: 100%;
}

.bf-amazon-visual__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* ========================================================================== 
   Provisional home: editorial category grids
   ========================================================================== */
.bf-home-grid {
    width: 100%;
}

.bf-home-section {
    margin: 0 0 52px;
}

.bf-home-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

.bf-home-section__title {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.2;
}

.bf-home-section__title a,
.bf-home-section__more,
.bf-home-card__link {
    text-decoration: none;
}

.bf-home-section__title a {
    color: inherit;
}

.bf-home-section__more {
    flex: 0 0 auto;
    font-size: .95rem;
    font-weight: 600;
}

.bf-home-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.bf-home-card {
    min-width: 0;
    margin: 0;
}

.bf-home-card__link {
    display: block;
    color: inherit;
}

.bf-home-card__media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    border-radius: 7px;
    background: #eceff1;
}

.bf-home-card__image,
.bf-home-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bf-home-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 650;
}

.bf-home-card__link:hover .bf-home-card__title,
.bf-home-card__link:focus .bf-home-card__title {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .bf-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .bf-home-section {
        margin-bottom: 38px;
    }

    .bf-home-section__header {
        gap: 12px;
    }

    .bf-home-cards {
        gap: 18px 12px;
    }

    .bf-home-card__title {
        font-size: .98rem;
    }
}

/* ==========================================================================
   Baseframe 0.25.0 — single-post feed, MOBILE FIRST.
   This is the ONLY definition of the article carousels, cards and controls.
   GeneratePress keeps responsibility for outer columns and sidebar.
   ========================================================================== */
:root { --bf-ink:#0f1419; --bf-muted:#536471; --bf-link:#1d9bf0; --bf-divider:#eff3f4; }
body { background:#fff; color:var(--bf-ink); font-family:Roboto,Arial,sans-serif; font-size:17px; line-height:1.6; }
a { color:var(--bf-link); }
h1,h2,h3,h4,h5,h6 { color:var(--bf-ink); }

/* Width: 1200px total (incl. optional GP sidebar), 700px article only. */
.single-post .site-content,
.single-post.baseframe-has-hero .site-content {
    width:100%; max-width:1200px; margin-inline:auto; box-sizing:border-box;
}
.single-post .content-area { min-width:0; }
.single-post .site-main { width:100%; max-width:none; min-width:0; }
.single-post .inside-article {
    max-width:700px; width:100%; margin-inline:auto; box-sizing:border-box;
    padding:12px; border-radius:0; background:#fff;
}
.single-post .bf-document { width:100%; max-width:none; color:var(--bf-ink); }
.single-post .bf-section {
    margin:0; padding:16px 0; background:#fff; border-bottom:1px solid var(--bf-divider);
}
.single-post .bf-section__inner,
.single-post .bf-section--text > .bf-section__inner,
.single-post .bf-section--visual > .bf-section__inner { width:100%; max-width:none; }
.single-post .bf-section__heading { margin:0 0 11px; font-size:21px; line-height:1.3; }
.single-post .bf-section-answer { margin:0 0 12px; max-width:100%; font-size:16px; line-height:1.5; color:var(--bf-muted); }
.single-post .bf-content-with-visual,
.single-post .bf-content-with-visual--1-3,
.single-post .bf-content-with-visual--1-3.bf-content-with-visual--media-right {
    display:flex; flex-direction:column; gap:10px;
}
.single-post .bf-content-with-visual__content,
.single-post .bf-content-with-visual--media-right .bf-content-with-visual__content,
.single-post .bf-content-with-visual__media,
.single-post .bf-content-with-visual--media-right .bf-content-with-visual__media {
    width:100%; min-width:0; grid-column:auto; grid-row:auto;
}
.single-post .bf-content-with-visual__content { order:0; }
.single-post .bf-content-with-visual__media { order:1; }

/* Product strips: default 70% mobile, next item remains visible. */
.single-post .bf-products { display:block; margin:12px 0; min-width:0; }
.single-post .bf-products > .bf-aawp-loop,
.single-post .bf-aawp-loop {
    display:flex; gap:10px; width:100%; min-width:0; overflow-x:auto;
    overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
    padding:2px 0 8px;
}
.single-post .bf-aawp-loop > .bf-product {
    flex:0 0 70%; width:70%; min-width:0; height:auto;
    scroll-snap-align:start; padding:8px; text-align:center;
    border:0; border-left:1px solid rgb(20 35 30 / 2%);
    box-shadow:none; background:rgb(20 35 30 / 2%); border-radius:15px;
}
.single-post .bf-aawp-loop .bf-product__media {
    min-height:0; margin-bottom:6px;
}
.single-post .bf-aawp-loop .bf-product__image {
    display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain;
}
.single-post .bf-aawp-loop .bf-product__title {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
    overflow:hidden; font-size:13px; font-weight:500; line-height:1.35;
    color:#33434a; text-decoration:none;
}
.single-post .bf-aawp-loop .bf-product__title:hover,
.single-post .bf-aawp-loop .bf-product__title:focus-visible { color:var(--bf-ink); text-decoration:underline; }
.single-post .bf-aawp-loop .bf-product__actions {
    margin-top:auto; padding-top:7px;
}
.single-post .bf-aawp-loop .bf-product__actions .aawp-button,
.single-post .bf-aawp-loop .bf-product__actions .aawp-button--buy,
.single-post .bf-aawp-loop .bf-product__actions a.aawp-button {
    display:inline-flex; align-items:center; justify-content:center;
    width:auto; max-width:100%; min-height:34px;
    padding:6px 9px; margin:0; font-size:12px; line-height:1.25;
    white-space:normal; box-sizing:border-box;
}
.single-post .bf-aawp-loop .bf-product__price { display:none; }

/* Separate AAWP layout: standalone early product, not a scroll card. */
.single-post .bf-aawp-loop:has(> .bf-early-card),
.single-post .bf-aawp-loop:has(> .bf-image-gallery) { display:block; overflow:visible; }
.bf-early-card {
    display:grid; grid-template-columns:minmax(0,1fr); gap:8px;
    padding:9px 0; background:#fff; border:0; min-width:0;
}
.bf-early-card__media { display:block; }
.bf-early-card__media img { display:block; width:100%; max-width:250px; aspect-ratio:1; object-fit:contain; margin-inline:auto; }
.bf-early-card__content { min-width:0; }
.bf-early-card__label { font-size:11px; font-weight:700; color:var(--bf-muted); letter-spacing:.02em; }
.bf-early-card__title { font-size:18px; line-height:1.3; margin:5px 0 7px; }
.bf-early-card__description { margin:0 0 7px; }
.bf-early-card__product-title { display:block; font-size:13px; line-height:1.4; margin-bottom:8px; color:#33434a; text-decoration:none; }
.bf-early-card__actions { margin-top:7px; }

/* JSON-powered image-content carousel: default 70% mobile. */
.single-post .bf-image-gallery {
    display:flex; width:100%; gap:10px; overflow-x:auto;
    scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
    padding:2px 0 8px;
}
.single-post .bf-image-gallery__item {
    display:block; flex:0 0 70%; width:70%; min-width:0; aspect-ratio:1;
    scroll-snap-align:start;
}
.single-post .bf-image-gallery__item img {
    display:block; width:100%; height:100%; object-fit:contain;
    border-radius:15px; border:1px solid #ececec; box-sizing:border-box;
}
.single-post .bf-image-gallery--single { overflow:visible; scroll-snap-type:none; }

/* Both AAWP carousels use the same optional JS arrows. */
.single-post .bf-scroll-frame { position:relative; min-width:0; width:100%; }
.single-post .bf-scroll-frame > .bf-aawp-loop,
.single-post .bf-scroll-frame > .bf-image-gallery { width:100%; }
.single-post .bf-scroll-arrow {
    position:absolute; z-index:5; top:50%; transform:translateY(-50%);
    display:grid; place-items:center; width:36px; height:36px;
    padding:0; border:0; border-radius:50%; cursor:pointer;
    background:rgba(15,20,25,.84); color:#fff;
    font:23px/1 Arial,sans-serif; box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.single-post .bf-scroll-arrow--prev { left:6px; }
.single-post .bf-scroll-arrow--next { right:6px; }
.single-post .bf-scroll-arrow:hover { background:var(--bf-ink); }
.single-post .bf-scroll-arrow:focus-visible { outline:3px solid var(--bf-link); outline-offset:2px; }
.single-post .bf-scroll-arrow[hidden] { display:none !important; }

/* Legacy early-solution card (still used by existing generated posts). */
@media (max-width:767px) {
    .single-post .bf-early-solutions { gap:10px; margin:12px 0; }
    .single-post .bf-early-item { border-radius:12px; box-shadow:none; }
    .single-post .bf-early-item > div { padding:10px; }
    .single-post .bf-early-item__product { min-height:0; }
    .single-post .bf-early-item__image { height:auto; max-height:170px; }
    .single-post .bf-early-item__heading { font-size:16px; }
    .single-post .bf-early-item__need,
    .single-post .bf-early-item__fit,
    .single-post .bf-early-item__product-title,
    .single-post .bf-early-item__disclosure { font-size:13px; }
    .single-post .bf-early-item__action a,
    .single-post .bf-early-item__actions a {
        box-sizing:border-box; min-height:36px; padding:8px 10px;
        font-size:13px; line-height:1.3;
    }
}

@media (min-width:600px) {
    .bf-early-card { grid-template-columns:minmax(0,42%) minmax(0,1fr); align-items:center; gap:16px; }
}
@media (min-width:768px) {
    .single-post .inside-article { padding:18px; }
    .single-post .bf-section { padding:20px 0; }
    .single-post .bf-section__heading { font-size:22px; }
    .single-post .bf-aawp-loop > .bf-product { flex-basis:40%; width:40%; padding:10px; }
    .single-post .bf-aawp-loop .bf-product__title { font-size:14px; }
    .single-post .bf-aawp-loop .bf-product__actions .aawp-button,
    .single-post .bf-aawp-loop .bf-product__actions a.aawp-button { font-size:13px; }
    .single-post .bf-image-gallery { gap:15px; }
    .single-post .bf-image-gallery__item { flex-basis:60%; width:60%; }
    .single-post .bf-scroll-arrow { width:44px; height:44px; font-size:27px; }
}
