.gs-looks-page {
    --gs-black: #0a0a0a;
    --gs-ink: #171717;
    --gs-mid: #6c6c6c;
    --gs-line: #d8d8d8;
    --gs-soft: #f3f3f3;
    /* Break the shortcode out of narrow theme/layout wrappers. */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 clamp(14px, 2vw, 28px) 96px;
    box-sizing: border-box;
    background: #fff;
    color: var(--gs-ink);
}

.gs-looks-page *,
.gs-looks-page *::before,
.gs-looks-page *::after { box-sizing: border-box; }

.gs-looks-shell { width: 100%; max-width: 1440px; margin: 0 auto; }

.gs-look {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: clamp(34px, 5vw, 76px);
    padding: clamp(54px, 7vw, 96px) 0;
    border-bottom: 1px solid var(--gs-line);
}

.gs-look-editorial { min-width: 0; }
.gs-look-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--gs-mid); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.gs-look-title { max-width: 820px; margin: 0; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; font-weight: 550; }
.gs-look-title a { color: var(--gs-black); text-decoration: none; }
.gs-look-content { max-width: 760px; margin-top: 24px; color: #4d4d4d; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; }
.gs-look-content > *:first-child { margin-top: 0; }
.gs-look-content > *:last-child { margin-bottom: 0; }

.gs-look-image-wrap { margin: clamp(28px, 4vw, 48px) 0 0; background: #fff; overflow: hidden; }
.gs-look-gallery-stage { position: relative; background: var(--gs-soft); overflow: hidden; }
.gs-look-image { display: block; width: 100%; min-height: 420px; max-height: 780px; object-fit: cover; }
.gs-look-image-tags,
.gs-look-image-actions { position: absolute; bottom: 14px; display: flex; gap: 7px; align-items: center; }
.gs-look-image-tags { left: 14px; max-width: 62%; flex-wrap: wrap; }
.gs-look-image-actions { right: 14px; }
.gs-look-image-tags span,
.gs-look-action {
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 0;
    background: rgba(10,10,10,.88);
    color: #fff;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(5px);
}
.gs-look-action { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gs-look-action em { font-style: normal; }
.gs-look-action.is-saved { background: #fff; color: #111; border-color: #fff; }

.gs-look-products { min-width: 0; padding-top: 2px; }
.gs-look-products-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--gs-black); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.gs-look-products-heading b { display: grid; place-items: center; min-width: 25px; height: 25px; background: var(--gs-black); color: #fff; font-size: 10px; }
.gs-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding-top: 18px; }
.gs-product { min-width: 0; color: var(--gs-black); text-decoration: none; }
.gs-product-image { display: block; aspect-ratio: 4 / 5; background: var(--gs-soft); overflow: hidden; }
.gs-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gs-product:hover .gs-product-image img { transform: scale(1.025); }
.gs-product-placeholder { display: block; width: 100%; height: 100%; background: #e8e8e8; }
.gs-product strong { display: block; margin-top: 10px; overflow: hidden; color: #181818; font-size: 13px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; }
.gs-product-price { display: block; margin-top: 4px; color: var(--gs-mid); font-size: 12px; }
.gs-no-products { margin: 18px 0 0; color: var(--gs-mid); }

.gs-feed-sentinel { display: grid; place-items: center; min-height: 110px; color: var(--gs-mid); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.gs-feed-sentinel.is-loading::before { content: ''; width: 22px; height: 22px; margin-right: 12px; border: 2px solid #d0d0d0; border-top-color: #111; border-radius: 50%; animation: gs-spin .8s linear infinite; }
.gs-feed-sentinel.is-loading { display: flex; flex-direction: row; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
    .gs-looks-page {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
    }
    .gs-looks-shell { width: 100%; max-width: none; margin: 0; }
    .gs-look { display: block; padding: 36px 12px 50px; }
    .gs-look-meta { margin-bottom: 14px; }
    .gs-look-title { font-size: clamp(30px, 8.2vw, 38px); line-height: 1.04; letter-spacing: -.035em; }
    .gs-look-content { margin-top: 18px; font-size: 16px; }
    .gs-look-image-wrap { margin-left: -12px; margin-right: -12px; }
    .gs-look-image { min-height: 460px; max-height: none; aspect-ratio: 4 / 5; }
    .gs-look-image-tags { left: 12px; bottom: 12px; max-width: 58%; }
    .gs-look-image-actions { right: 12px; bottom: 12px; }
    .gs-look-action em { display: none; }
    .gs-look-products { margin-top: 28px; }
    .gs-product-grid { display: flex; gap: 12px; overflow-x: auto; margin: 0 -12px; padding: 16px 12px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
    .gs-product-grid::-webkit-scrollbar { display: none; }
    .gs-product { flex: 0 0 42vw; max-width: 190px; scroll-snap-align: start; }
    .gs-product strong { font-size: 12px; }
    .gs-feed-sentinel { min-height: 90px; }
}

@media (max-width: 420px) {
    .gs-look-image-tags span { padding: 6px 8px; font-size: 10px; }
    .gs-look-action { width: 34px; padding: 0; justify-content: center; }
    .gs-product { flex-basis: 46vw; }
}


/* v0.5.2 — feed controls + Shop the Look polish */
.gs-look-image-tags { gap: 6px; }
.gs-look-image-tags span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(10,10,10,.92);
    color: #fff;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.gs-look-image-actions { gap: 8px; }
.gs-look-action {
    width: 42px;
    height: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(10,10,10,.12);
    background: rgba(255,255,255,.96);
    color: #111;
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.gs-look-action:hover,
.gs-look-action:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
}
.gs-look-action-icon { width: 19px; height: 19px; display: block; }
.gs-look-action em {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.gs-look-save.is-saved {
    background: #111;
    color: #fff;
    border-color: #111;
}
.gs-look-save.is-saved .gs-save-shape { fill: currentColor; }

.gs-shop-the-look {
    margin: 0 0 8px;
    color: var(--gs-mid);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.gs-look-products-heading {
    padding-bottom: 13px;
    font-size: 12px;
    letter-spacing: .14em;
}

@media (max-width: 880px) {
    .gs-look-image-tags { left: 12px; bottom: 12px; max-width: calc(100% - 122px); }
    .gs-look-image-actions { right: 12px; bottom: 12px; }
    .gs-look-action { width: 40px; height: 40px; min-height: 40px; }
    .gs-shop-the-look { margin-top: 2px; margin-bottom: 7px; font-size: 9px; }
}

@media (max-width: 420px) {
    .gs-look-image-tags span { min-height: 28px; padding: 5px 8px; font-size: 9px; }
    .gs-look-action { width: 38px; height: 38px; min-height: 38px; }
    .gs-look-action-icon { width: 18px; height: 18px; }
}


/* v0.5.3 — force feed action SVGs to stay visible under theme overrides */
.gs-looks-page .gs-look-action .gs-look-action-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #111 !important;
    fill: none !important;
    stroke: #111 !important;
    pointer-events: none;
}
.gs-looks-page .gs-look-action .gs-look-action-icon path {
    opacity: 1 !important;
    visibility: visible !important;
    stroke: #111 !important;
    fill: none !important;
}
.gs-looks-page .gs-look-action:hover .gs-look-action-icon,
.gs-looks-page .gs-look-action:focus-visible .gs-look-action-icon,
.gs-looks-page .gs-look-action:hover .gs-look-action-icon path,
.gs-looks-page .gs-look-action:focus-visible .gs-look-action-icon path {
    color: #fff !important;
    stroke: #fff !important;
}
.gs-looks-page .gs-look-save.is-saved .gs-look-action-icon,
.gs-looks-page .gs-look-save.is-saved .gs-look-action-icon path {
    color: #fff !important;
    stroke: #fff !important;
}
.gs-looks-page .gs-look-save.is-saved .gs-save-shape {
    fill: #fff !important;
}
@media (max-width: 420px) {
    .gs-looks-page .gs-look-action .gs-look-action-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
    }
}

/* v0.6.0 — multi-photo looks + exploreable occasion/style labels */
.gs-feed-filter-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gs-line);
    color: var(--gs-mid);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gs-feed-filter-state[hidden] { display: none !important; }
.gs-feed-filter-state strong { color: var(--gs-black); }
.gs-feed-filter-state button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--gs-line);
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.gs-look-meta-explore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
}
.gs-look-meta-explore:hover,
.gs-look-meta-explore:focus-visible { border-bottom-color: currentColor; }
.gs-look-meta-explore i { font-size: 12px; line-height: 1; font-style: normal; }

.gs-look-gallery-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.gs-look-gallery-track::-webkit-scrollbar { display: none; }
.gs-look-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.gs-look-gallery-slide .gs-look-image { width: 100%; }
.gs-look-gallery-count {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    min-width: 38px;
    padding: 7px 8px;
    background: rgba(10,10,10,.88);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    letter-spacing: .05em;
}
.gs-look-gallery-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 38px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.gs-look-gallery-prev { left: 12px; }
.gs-look-gallery-next { right: 12px; }

/* Tags now behave like browse links, but keep the same visual language. */
.gs-looks-page .gs-look-image-tags a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 0;
    background: rgba(10,10,10,.92);
    color: #fff !important;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
}
.gs-looks-page .gs-look-image-tags a:hover,
.gs-looks-page .gs-look-image-tags a:focus-visible {
    background: #fff;
    color: #111 !important;
    border-color: #fff;
}
.gs-looks-page .gs-look-image-tags a i {
    font-size: 11px;
    line-height: 1;
    font-style: normal;
}

@media (max-width: 880px) {
    .gs-feed-filter-state { margin: 0 12px; }
    .gs-look-gallery-nav { display: none; }
    .gs-look-gallery-count { top: 10px; right: 10px; }
}

@media (max-width: 420px) {
    .gs-looks-page .gs-look-image-tags a {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 9px;
    }
}


/* v0.6.1 — thumbnail gallery on every device */
.gs-look-gallery-thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 10px 0 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.gs-look-gallery-thumbs::-webkit-scrollbar { display: none; }
.gs-look-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 88px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #f3f3f3;
    opacity: .58;
    overflow: hidden;
    cursor: pointer;
}
.gs-look-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gs-look-gallery-thumb.is-active,
.gs-look-gallery-thumb[aria-current="true"] {
    border-color: #111;
    opacity: 1;
}
.gs-look-gallery-thumb:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Thumbnails replace device-specific arrows/count for a consistent gallery UI. */
.gs-look-gallery-count,
.gs-look-gallery-nav { display: none !important; }

@media (max-width: 880px) {
    .gs-look-gallery-thumbs {
        gap: 7px;
        padding: 8px 12px 0;
    }
    .gs-look-gallery-thumb {
        flex-basis: 62px;
        width: 62px;
        height: 76px;
    }
}


/* v0.6.2 — native title cleanup + stable entry position */
.gs-looks-page .gs-look-title {
    font-size: clamp(30px, 3.6vw, 48px);
}
.gs-looks-page .gs-look-title a,
.gs-looks-page .gs-look-title a:visited,
.gs-looks-page .gs-look-title a:hover,
.gs-looks-page .gs-look-title a:focus {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}
.gs-looks-page .gs-look-title a::before,
.gs-looks-page .gs-look-title a::after {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}
@media (max-width: 880px) {
    .gs-looks-page .gs-look-title {
        font-size: clamp(26px, 6.7vw, 32px);
        line-height: 1.08;
        letter-spacing: -.025em;
    }
}

/* v0.7.2 — keep look photos completely unobstructed */
.gs-look-image-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-top: 10px;
}

.gs-looks-page .gs-look-image-tags,
.gs-looks-page .gs-look-image-actions {
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: none !important;
}

.gs-looks-page .gs-look-image-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.gs-looks-page .gs-look-image-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.gs-looks-page .gs-look-image-tags a {
    border-color: #111;
    background: #111;
    backdrop-filter: none;
}

.gs-looks-page .gs-look-image-tags a:hover,
.gs-looks-page .gs-look-image-tags a:focus-visible {
    border-color: #111;
    background: #fff;
    color: #111 !important;
}

.gs-looks-page .gs-look-action {
    background: #fff;
    backdrop-filter: none;
}

@media (max-width: 880px) {
    .gs-look-image-controls {
        padding: 10px 12px 0;
    }
}

@media (max-width: 420px) {
    .gs-look-image-controls {
        align-items: flex-start;
        gap: 10px;
    }
    .gs-looks-page .gs-look-image-tags {
        gap: 5px;
    }
}


/* v0.7.3 — natural image sizing + simpler gallery controls */
.gs-looks-page .gs-look-gallery-stage {
    background: #fff;
    overflow: hidden;
}
.gs-looks-page .gs-look-gallery-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 100%;
    background: #fff;
}
.gs-looks-page .gs-look-image {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: initial !important;
    margin: 0 auto !important;
}

/* Thumbnails sit directly under the image on every device. */
.gs-looks-page .gs-look-gallery-thumbs {
    margin: 0;
    padding: 8px 0 0;
    gap: 7px;
}
.gs-looks-page .gs-look-gallery-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 72px;
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
    background: #fff;
    opacity: 1;
    filter: none;
}
.gs-looks-page .gs-look-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gs-looks-page .gs-look-gallery-thumb.is-active,
.gs-looks-page .gs-look-gallery-thumb[aria-current="true"] {
    border: 2px solid #111;
    opacity: 1;
    filter: none;
}

/* One quiet control row: tags left, Share/Save right. */
.gs-looks-page .gs-look-image-controls {
    padding-top: 10px;
    gap: 10px;
}
.gs-looks-page .gs-look-image-tags a {
    min-height: 34px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    padding: 8px 10px;
    box-shadow: none;
    backdrop-filter: none;
}
.gs-looks-page .gs-look-action,
.gs-looks-page .gs-look-action:hover,
.gs-looks-page .gs-look-action:focus-visible {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    background: #fff;
    color: #111;
    box-shadow: none !important;
    backdrop-filter: none;
}
.gs-looks-page .gs-look-save.is-saved,
.gs-looks-page .gs-look-save.is-saved:hover,
.gs-looks-page .gs-look-save.is-saved:focus-visible {
    border-color: #111 !important;
    background: #111;
    color: #fff;
}
.gs-looks-page .gs-look-save.is-saved .gs-look-action-icon,
.gs-looks-page .gs-look-save.is-saved .gs-look-action-icon path {
    color: #fff !important;
    stroke: #fff !important;
}
.gs-looks-page .gs-look-save.is-saved .gs-save-shape {
    fill: #fff !important;
}

@media (max-width: 880px) {
    .gs-looks-page .gs-look-gallery-thumbs {
        padding: 7px 12px 0;
    }
    .gs-looks-page .gs-look-gallery-thumb {
        flex-basis: 56px;
        width: 56px;
        height: 68px;
    }
    .gs-looks-page .gs-look-image-controls {
        padding: 9px 12px 0;
    }
}


/* v0.7.5 — true-proportion gallery thumbnails.
 * Keep the whole uploaded image visible; only the active thumb gets a black border. */
.gs-looks-page .gs-look-gallery-thumbs {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}
.gs-looks-page button.gs-look-gallery-thumb {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: auto !important;
    aspect-ratio: 5 / 7 !important;
    min-width: 72px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
}
.gs-looks-page button.gs-look-gallery-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    filter: none !important;
}
.gs-looks-page button.gs-look-gallery-thumb.is-active,
.gs-looks-page button.gs-look-gallery-thumb[aria-current="true"] {
    border: 2px solid #111 !important;
}
@media (max-width: 880px) {
    .gs-looks-page button.gs-look-gallery-thumb {
        flex-basis: 64px !important;
        width: 64px !important;
        min-width: 64px !important;
    }
}

/* v0.7.7 — native WooCommerce/theme product-card UI + 2.2-card mobile row.
 * Greysole Looks owns only the tagged-product arrangement; the active
 * WooCommerce template/theme owns the visual design of each card. */
.gs-looks-page ul.products.gs-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 0 0 !important;
    list-style: none !important;
}
.gs-looks-page ul.products.gs-product-grid::before,
.gs-looks-page ul.products.gs-product-grid::after {
    display: none !important;
    content: none !important;
}
.gs-looks-page ul.products.gs-product-grid > li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 880px) {
    .gs-looks-page ul.products.gs-product-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        margin: 0 -12px !important;
        padding: 16px 12px 4px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .gs-looks-page ul.products.gs-product-grid::-webkit-scrollbar {
        display: none;
    }
    .gs-looks-page ul.products.gs-product-grid > li.product {
        /* About 2.2 cards visible: two full cards + a teaser of the next.
         * Use the row width, not the viewport, so this remains correct inside
         * WoodMart/Elementor containers. */
        flex: 0 0 43% !important;
        flex-basis: 43% !important;
        width: 43% !important;
        min-width: 43% !important;
        max-width: 43% !important;
        box-sizing: border-box !important;
        scroll-snap-align: start;
    }
}


/* v0.7.8 — lock the MOBILE tagged-products row to the intended 2.2-card layout.
 * Keep WoodMart/WooCommerce responsible for the product-card UI itself.
 * Greysole Looks only controls the outer card width and horizontal arrangement. */
@media (max-width: 880px) {
    .gs-looks-page ul.products.gs-product-grid {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: calc(100% + 24px) !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .gs-looks-page ul.products.gs-product-grid > li.product,
    .gs-looks-page ul.products.gs-product-grid > li.wd-product,
    .gs-looks-page ul.products.gs-product-grid > li.product-grid-item {
        /* (row width - gaps) / 2.2 gives two full cards with a teaser of card 3. */
        flex: 0 0 calc((100% - 24px) / 2.2) !important;
        flex-basis: calc((100% - 24px) / 2.2) !important;
        width: calc((100% - 24px) / 2.2) !important;
        min-width: calc((100% - 24px) / 2.2) !important;
        max-width: calc((100% - 24px) / 2.2) !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        scroll-snap-align: start;
    }

    /* Prevent WoodMart inner wrappers from shrinking the native card inside our slot. */
    .gs-looks-page ul.products.gs-product-grid > li.product > *,
    .gs-looks-page ul.products.gs-product-grid > li.wd-product > *,
    .gs-looks-page ul.products.gs-product-grid > li.product-grid-item > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
