/* =========================================================
   DOLL FINDS HUB — MY COLLECTION
   Clean consolidated stylesheet
========================================================= */

.dfh-collection-page {
    --dfh-collection-bg: #080a09;
    --dfh-collection-panel: #0e1110;
    --dfh-collection-text: #e8e7e3;
    --dfh-collection-muted: #a9aaa6;
    --dfh-collection-soft: #747773;
    --dfh-collection-platinum: #d8d9d6;
    --dfh-collection-line: rgba(216, 217, 214, 0.22);
    --dfh-collection-line-soft: rgba(216, 217, 214, 0.11);

    width: 100%;
    min-width: 0;
    margin: 0 0 90px;

    color: var(--dfh-collection-text);

    font-family:
        "Manrope",
        Arial,
        sans-serif;
}


/* =========================================================
   WORDPRESS PAGE LAYOUT
========================================================= */

body:has(.dfh-collection-page) .single-entry__header {
    display: none !important;
}
body:has(.dfh-collection-page) .archive-page-wrapper.single-entry-layout {
    padding-top: 18px;
}

body:has(.dfh-collection-page) .single-entry {
    width: 100%;
    max-width: none;
    min-width: 0;

    padding: 0 0 72px !important;

    overflow: visible;
}

body:has(.dfh-collection-page) .single-entry > article,
body:has(.dfh-collection-page) .single-entry__content {
    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* =========================================================
   LOCAL RESET
========================================================= */

.dfh-collection-page *,
.dfh-collection-page *::before,
.dfh-collection-page *::after {
    box-sizing: border-box;
}

.dfh-collection-page h1,
.dfh-collection-page h2,
.dfh-collection-page h3,
.dfh-collection-page h4,
.dfh-collection-page p,
.dfh-collection-page figure,
.dfh-collection-page ul,
.dfh-collection-page li {
    margin: 0;
}

.dfh-collection-page img {
    display: block;

    width: 100%;
    max-width: none;
}

.dfh-collection-page a {
    color: inherit;

    text-decoration: none;
}

.dfh-collection-page button {
    border: 0;
    border-radius: 0;

    font: inherit;
}

.dfh-collection-eyebrow {
    display: block;

    color: var(--dfh-collection-muted);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================================================
   INTRO
========================================================= */

.dfh-collection-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(330px, 0.65fr);

    gap: clamp(55px, 7vw, 115px);

    align-items: center;

    padding: clamp(52px, 6vw, 88px) clamp(28px, 4vw, 64px);

    border: 1px solid var(--dfh-collection-line);
    border-bottom: 0;

    background:
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0.018),
            transparent 42%
        );
}

.dfh-collection-intro__main,
.dfh-collection-intro__quote {
    min-width: 0;
}

.dfh-collection-intro h1 {
    margin-top: 20px;

    color: var(--dfh-collection-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(64px, 8vw, 124px);
    font-weight: 400;
    line-height: 0.82;

    letter-spacing: -4px;
}

.dfh-collection-intro__main > p {
    max-width: 760px;

    margin-top: 34px;

    color: var(--dfh-collection-muted);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.45;
}

.dfh-collection-intro__quote {
    align-self: center;
}

.dfh-collection-intro__quote > span {
    display: block;

    width: 100%;
    height: 1px;

    margin-bottom: 20px;

    background: var(--dfh-collection-line);
}

.dfh-collection-intro__feeling-lead {
    max-width: 420px;

    color: #c4c5c1;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(19px, 1.7vw, 24px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

.dfh-collection-feelings {
    display: block;

    width: 100%;

    margin-top: 25px !important;
    padding: 0 !important;

    border-top: 1px solid var(--dfh-collection-line);

    list-style: none !important;
}

.dfh-collection-feelings li {
    display: grid;

    grid-template-columns:
        minmax(100px, 0.8fr)
        minmax(130px, 1.2fr);

    gap: 18px;

    align-items: center;

    margin: 0 !important;
    padding: 11px 0 !important;

    border-bottom: 1px solid var(--dfh-collection-line-soft);

    list-style: none !important;
}

.dfh-collection-feelings li::before,
.dfh-collection-feelings li::marker {
    display: none !important;

    content: none !important;
}

.dfh-collection-feelings li span {
    color: var(--dfh-collection-muted);

    font-size: 8px;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dfh-collection-feelings li strong {
    color: var(--dfh-collection-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    text-align: right;
}


/* =========================================================
   CATEGORY TABS
========================================================= */

.dfh-collection-tabs {
    position: sticky;
    z-index: 30;

    top: 0;

    width: 100%;

    border: 1px solid var(--dfh-collection-line);

    background: rgba(8, 10, 9, 0.96);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.admin-bar .dfh-collection-tabs {
    top: 32px;
}

.dfh-collection-tabs__inner {
    display: grid;

    grid-template-columns: repeat(7, minmax(max-content, 1fr));

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: var(--dfh-collection-line) transparent;
}

.dfh-collection-tab {
    position: relative;

    min-height: 66px;

    padding: 0 18px;

    border-right: 1px solid var(--dfh-collection-line-soft) !important;

    color: var(--dfh-collection-muted);
    background: transparent;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: 1.3px;
    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.dfh-collection-tab:last-child {
    border-right: 0 !important;
}

.dfh-collection-tab::after {
    position: absolute;

    right: 18px;
    bottom: 0;
    left: 18px;

    height: 2px;

    background: var(--dfh-collection-platinum);

    content: "";

    opacity: 0;

    transform: scaleX(0);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.dfh-collection-tab:hover {
    color: var(--dfh-collection-text);

    background: rgba(255, 255, 255, 0.025);
}

.dfh-collection-tab.is-active {
    color: var(--dfh-collection-text);
}

.dfh-collection-tab.is-active::after {
    opacity: 1;

    transform: scaleX(1);
}

.dfh-collection-tab:focus-visible {
    outline: 1px solid var(--dfh-collection-text);
    outline-offset: -5px;
}


/* =========================================================
   CATEGORY PANELS
========================================================= */

.dfh-collection-panels {
    min-height: 700px;
}

.dfh-collection-panel {
    width: 100%;

    padding: clamp(54px, 6vw, 90px) 0 30px;
}

.dfh-collection-panel[hidden] {
    display: none !important;
}

.dfh-collection-panel.is-entering {
    animation: dfhCollectionPanelIn 0.45s ease both;
}

@keyframes dfhCollectionPanelIn {

    from {
        opacity: 0;

        transform: translateY(14px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.dfh-collection-panel__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 410px);

    gap: clamp(45px, 7vw, 110px);

    align-items: end;

    padding: 0 2px 38px;

    border-bottom: 1px solid var(--dfh-collection-line);
}

.dfh-collection-panel__header > div:first-child {
    min-width: 0;
}

.dfh-collection-panel__header h2 {
    max-width: 100%;

    margin-top: 17px;

    color: var(--dfh-collection-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(56px, 6vw, 88px);
    font-weight: 400;
    line-height: 0.9;

    letter-spacing: -2px;
}

.dfh-collection-panel__meta {
    display: flex;

    flex-direction: column;
    align-items: flex-end;

    width: 100%;
    min-width: 0;

    gap: 22px;

    padding-bottom: 6px;
}

.dfh-collection-panel__intro {
    max-width: 410px;

    color: var(--dfh-collection-muted);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 19px;
    font-weight: 400;
    line-height: 1.4;

    text-align: right;
}

.dfh-collection-panel__summary {
    color: var(--dfh-collection-muted);

    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 1.5px;
    text-align: right;
    text-transform: uppercase;
}


/* =========================================================
   DOLL GROUPS
========================================================= */

.dfh-doll-group {
    padding-top: clamp(50px, 6vw, 82px);
}

.dfh-doll-group + .dfh-doll-group {
    margin-top: clamp(30px, 4vw, 58px);
}

.dfh-doll-group__header {
    display: grid;

    grid-template-columns:
        auto
        minmax(40px, 1fr);

    gap: 24px;

    align-items: center;

    margin-bottom: 27px;
}

.dfh-doll-group__header h3 {
    color: var(--dfh-collection-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: -0.5px;
}

.dfh-doll-group__header > span {
    display: block;

    width: 100%;
    height: 1px;

    background: var(--dfh-collection-line);
}


/* =========================================================
   DOLL GRID
========================================================= */

.dfh-doll-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: clamp(18px, 2vw, 30px);
}

.dfh-doll-card {
    display: block;

    min-width: 0;

    color: var(--dfh-collection-text);
    background: transparent;

    text-decoration: none;
}

a.dfh-doll-card {
    cursor: pointer;
}

.dfh-doll-card--locked {
    cursor: default;
}


/* =========================================================
   DOLL CARD VISUAL
========================================================= */

.dfh-doll-card__visual {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border: 1px solid var(--dfh-collection-line);

    background: var(--dfh-collection-panel);

    isolation: isolate;
}

.dfh-doll-card__full {
    position: absolute;
    z-index: 1;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.92)
        brightness(0.94);

    transform: scale(1.002);

    will-change: transform;
}

.dfh-doll-card__cover {
    position: absolute;
    z-index: 2;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    opacity: 1;

    background: var(--dfh-collection-panel);

    transform: none;
    filter: none;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    will-change:
        -webkit-mask-image,
        mask-image;
}

.dfh-doll-card__cover > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.9)
        brightness(0.95);

    transform: scale(1);
    transform-origin: center center;

    will-change: transform;
}

.dfh-doll-card__fold {
    display: none;
}

.dfh-editorial-gloss {
    position: absolute;
    z-index: 3;

    top: -20%;
    left: -55%;

    width: 34%;
    height: 140%;

    pointer-events: none;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.04) 28%,
            rgba(255, 255, 255, 0.16) 43%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.16) 57%,
            rgba(255, 255, 255, 0.04) 72%,
            rgba(255, 255, 255, 0) 100%
        );

    filter: blur(3px);

    mix-blend-mode: screen;

    transform:
        translateX(0)
        skewX(-12deg);

    will-change:
        transform,
        opacity;
}


/* =========================================================
   CARD DETAILS
========================================================= */

.dfh-doll-card__details {
    padding: 19px 2px 0;
}

.dfh-doll-card__details h4 {
    min-height: 52px;

    color: var(--dfh-collection-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(21px, 1.8vw, 28px);
    font-weight: 400;
    line-height: 1;

    transition: color 0.25s ease;
}

.dfh-doll-card__details > p {
    margin-top: 9px;

    color: var(--dfh-collection-muted);

    font-size: 9px;
    font-weight: 500;
    line-height: 1.45;

    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.dfh-doll-card__details > p.dfh-doll-card__component {
    margin-top: 8px;

    line-height: 1.5;

    letter-spacing: 0.8px;
    text-transform: none;
}

.dfh-doll-card__details > p.dfh-doll-card__component + p.dfh-doll-card__component {
    margin-top: 3px;
}

.dfh-doll-card__note {
    display: block;

    margin-top: 11px;

    color: var(--dfh-collection-text);

    font-size: 8px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.dfh-doll-card__footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-top: 17px;
    padding-top: 13px;

    border-top: 1px solid var(--dfh-collection-line);
}

.dfh-doll-card__status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 4px 10px;

    border: 1px solid var(--dfh-collection-line);

    color: var(--dfh-collection-muted);

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.dfh-doll-card__view,
.dfh-doll-card__coming {
    color: var(--dfh-collection-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 1.3px;
    text-align: right;
    text-transform: uppercase;
}

.dfh-doll-card__coming {
    color: var(--dfh-collection-soft);
}

.dfh-doll-card__view b {
    display: inline-block;

    margin-left: 8px;

    font-size: 15px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    a.dfh-doll-card:hover .dfh-doll-card__details h4 {
        color: #ffffff;
    }

    a.dfh-doll-card:hover .dfh-doll-card__view b {
        transform: translateX(5px);
    }
}

a.dfh-doll-card:focus-visible {
    outline: 1px solid var(--dfh-collection-text);
    outline-offset: 6px;
}


/* =========================================================
   DISNEY RALPH BREAKS THE INTERNET — WIDE CARD
========================================================= */

.dfh-doll-card--wide {
    grid-column: span 3;
}

.dfh-doll-card--wide .dfh-doll-card__visual {
    aspect-ratio: 2.585 / 1;
}

.dfh-doll-card--disney-ralph .dfh-doll-card__full,
.dfh-doll-card--disney-ralph .dfh-doll-card__cover > img {
    object-fit: cover;
    object-position: center;
}

.dfh-doll-card--wide .dfh-doll-card__details h4 {
    min-height: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .dfh-collection-intro {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(300px, 0.85fr);

        gap: 45px;
    }

    .dfh-collection-tabs__inner {
        grid-template-columns: repeat(7, max-content);
    }

    .dfh-collection-tab {
        min-width: 155px;
    }

    .dfh-collection-panel__header {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(270px, 350px);

        gap: 40px;
    }

    .dfh-doll-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dfh-doll-card__details h4 {
        min-height: 0;
    }

    .dfh-doll-card--wide {
        grid-column: span 2;
    }

    .dfh-doll-card--wide .dfh-doll-card__visual {
        aspect-ratio: 8 / 5;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    body:has(.dfh-collection-page) .archive-page-wrapper.single-entry-layout {
        padding-top: 12px;
    }

    .dfh-collection-page {
        margin-bottom: 55px;
    }

    .dfh-collection-intro {
        display: block;

        padding: 48px 20px;
    }

    .dfh-collection-intro h1 {
        font-size: clamp(58px, 18vw, 86px);
        line-height: 0.82;

        letter-spacing: -3px;
    }

    .dfh-collection-intro__main > p {
        margin-top: 28px;

        font-size: 18px;
    }

    .dfh-collection-intro__quote {
        margin-top: 42px;
    }

    .dfh-collection-intro__feeling-lead {
        max-width: 100%;
    }

    .dfh-collection-feelings li {
        grid-template-columns:
            minmax(90px, 0.8fr)
            minmax(120px, 1.2fr);

        gap: 15px;
    }

    .dfh-collection-feelings li strong {
        font-size: 15px;
    }

.dfh-collection-tabs {
    position: static;

    top: auto;

    padding: 12px;

    border: 1px solid var(--dfh-collection-line);

    background: rgba(8, 10, 9, 0.98);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.admin-bar .dfh-collection-tabs {
    top: auto;
}

.dfh-collection-tabs__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    overflow: visible;
}

.dfh-collection-tab {
    min-width: 0;
    min-height: 50px;

    padding: 10px 12px;

    border: 1px solid var(--dfh-collection-line) !important;

    color: var(--dfh-collection-muted);
    background: var(--dfh-collection-panel);

    font-size: 10px;
    line-height: 1.35;

    white-space: normal;

    cursor: pointer;
}

.dfh-collection-tab:last-child {
    grid-column: 1 / -1;

    border: 1px solid var(--dfh-collection-line) !important;
}

.dfh-collection-tab::after {
    display: none;
}

.dfh-collection-tab:hover {
    color: var(--dfh-collection-text);
    background: rgba(255, 255, 255, 0.06);
}

.dfh-collection-tab.is-active {
    border-color: var(--dfh-collection-platinum) !important;

    color: var(--dfh-collection-bg);
    background: var(--dfh-collection-platinum);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.24);
}

.dfh-collection-tab:focus-visible {
    outline: 2px solid var(--dfh-collection-text);
    outline-offset: 2px;
}

    .dfh-collection-panel {
        padding-top: 60px;
    }

    .dfh-collection-panel__header {
        display: block;

        padding-bottom: 30px;
    }

    .dfh-collection-panel__header h2 {
        font-size: clamp(50px, 16vw, 70px);
    }

    .dfh-collection-panel__meta {
        align-items: flex-start;

        width: 100%;

        margin-top: 28px;

        gap: 15px;
    }

    .dfh-collection-panel__intro {
        max-width: 100%;

        font-size: 17px;

        text-align: left;
    }

    .dfh-collection-panel__summary {
        text-align: left;
    }

    .dfh-doll-group {
        padding-top: 48px;
    }

    .dfh-doll-group + .dfh-doll-group {
        margin-top: 42px;
    }

    .dfh-doll-group__header {
        gap: 17px;

        margin-bottom: 22px;
    }

    .dfh-doll-group__header h3 {
        font-size: 32px;
    }

    .dfh-doll-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 50px;
    }

    .dfh-doll-card__details {
        padding-top: 18px;
    }

    .dfh-doll-card__details h4 {
        min-height: 0;

        font-size: 29px;
    }

    .dfh-doll-card__footer {
        margin-top: 16px;
    }

    .dfh-doll-card--wide {
        grid-column: span 1;
    }

    .dfh-doll-card--wide .dfh-doll-card__visual {
        aspect-ratio: 4 / 5;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dfh-collection-page *,
    .dfh-collection-page *::before,
    .dfh-collection-page *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
