.dp-shop-discovery,
.dp-shop-brands {
    width: min(1920px, calc(100% - 48px));
    margin-inline: auto;
}

.dp-shop-discovery {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(260px, 1fr);
    gap: 18px;
    padding: 72px 0 44px;
    border-top: 1px solid #262626;
}

.dp-shop-discovery-main { min-width: 0; }
.dp-shop-discovery-head { margin-bottom: 24px; }

.dp-shop-need-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.dp-shop-need {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: .76;
    padding: 0;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 0;
    background: #0b0b0b;
    color: #f4f4f1;
    text-align: left;
    cursor: pointer;
}

.dp-shop-need::after {
    content: "";
    position: absolute;
    inset: 34% 0 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
    pointer-events: none;
}

.dp-shop-need img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.dp-shop-need span {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .035em;
}

.dp-shop-need b { color: #ffd700; font-size: 18px; }
.dp-shop-need:hover img,
.dp-shop-need:focus-visible img { transform: scale(1.035); filter: brightness(1.08); }
.dp-shop-need:focus-visible { outline: 2px solid #ffd700; outline-offset: 3px; }

.dp-shop-gillian {
    align-self: end;
    min-height: 260px;
    padding: 28px;
    border: 1px solid #4a4100;
    background: #0c0c0c;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dp-shop-gillian > span,
.dp-shop-brands header span {
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.dp-shop-gillian h2 {
    margin: 16px 0 12px;
    color: #f4f4f1;
    font: inherit;
    font-size: clamp(25px, 2vw, 36px);
    font-weight: 400;
    line-height: 1.05;
}

.dp-shop-gillian p {
    margin: 0 0 9px;
    color: #a9a9a9;
    font-size: 14px;
    line-height: 1.55;
}

.dp-shop-gillian button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border: 1px solid #ffd700;
    border-radius: 0;
    background: transparent;
    color: #ffd700;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
}

.dp-shop-gillian button:hover,
.dp-shop-gillian button:focus-visible { background: #ffd700; color: #050505; }

.dp-shop-brands { padding: 0 0 52px; }
.dp-shop-brands header { margin-bottom: 16px; }

.dp-shop-brand-rail {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 7vw, 120px);
    padding: 20px 28px;
    border-block: 1px solid #292929;
    background: #080808;
    overflow-x: auto;
}

.dp-shop-brand-rail span {
    flex: 0 0 auto;
    color: #eeeeea;
    font-size: clamp(17px, 1.55vw, 25px);
    font-weight: 600;
    letter-spacing: .12em;
}

.dp-shop-brand-rail i { width: 1px; height: 36px; background: #383838; flex: 0 0 auto; }

@media (max-width: 1260px) {
    .dp-shop-discovery { grid-template-columns: 1fr; }
    .dp-shop-need-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dp-shop-gillian { min-height: 0; }
}

@media (max-width: 820px) {
    .dp-shop-discovery,
    .dp-shop-brands { width: min(100% - 28px, 720px); }
    .dp-shop-discovery { padding-top: 50px; }
    .dp-shop-need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dp-shop-need { aspect-ratio: .86; }
}

@media (max-width: 560px) {
    .dp-shop-discovery,
    .dp-shop-brands { width: calc(100% - 24px); }
    .dp-shop-discovery { padding: 42px 0 34px; gap: 14px; }
    .dp-shop-need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dp-shop-need { aspect-ratio: .9; }
    .dp-shop-need span { left: 12px; right: 12px; bottom: 12px; font-size: 12px; }
    .dp-shop-gillian { padding: 23px 20px; }
    .dp-shop-brands { padding-bottom: 40px; }
    .dp-shop-brand-rail { justify-content: flex-start; min-height: 78px; padding-inline: 22px; }
}

@media (orientation: landscape) and (max-height: 560px) {
    .dp-shop-need { aspect-ratio: 1.05; }
    .dp-shop-gillian { padding: 20px 24px; }
    .dp-shop-gillian h2 { margin-block: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .dp-shop-need img { transition: none; }
}


/* F.SHOP.SOL.WIDTH.1 START
   Keep Sol design.
   Match Hair Need + Curated Brands to main Shop content width.
*/

[data-commerce-shop] .dp-shop-discovery,
[data-commerce-shop] .dp-shop-brands {
    width: min(
        var(--shop-builder-concept-width, 1400px),
        calc(100% - 56px)
    ) !important;

    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Allow the left discovery column to shrink cleanly */
[data-commerce-shop] .dp-shop-discovery-main {
    min-width: 0 !important;
}

/* Seven Hair Need cards share the available space */
[data-commerce-shop] .dp-shop-need-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Keep Gillian inside the same content frame */
[data-commerce-shop] .dp-shop-discovery {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(260px, 300px) !important;
}

/* iPad / smaller desktop */
@media (max-width: 1000px) {

    [data-commerce-shop] .dp-shop-discovery,
    [data-commerce-shop] .dp-shop-brands {
        width: calc(100% - 42px) !important;
    }

    [data-commerce-shop] .dp-shop-discovery {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 700px) {

    [data-commerce-shop] .dp-shop-discovery,
    [data-commerce-shop] .dp-shop-brands {
        width: calc(100% - 28px) !important;
    }
}

/* F.SHOP.SOL.WIDTH.1 END */


/* F.SHOP.HIDE.HAIRGOALS.1 START
   Hair Need discovery now covers this journey.
   Keep Hair Goal DOM available for Shop Builder readiness,
   but remove the duplicate section from public presentation.
*/
[data-commerce-shop] section[aria-labelledby="shop-concern-title"] {
    display: none !important;
}
/* F.SHOP.HIDE.HAIRGOALS.1 END */
