/* Dreamfall RC12 · Experience layer
   Additive only: storefront UX, motion and discovery. */
:root {
    --df-r12-shadow: 0 24px 70px rgba(18,14,12,.14)
}

body.df-overlay-open,body.df-drawer-open {
    overflow: hidden
}

/* Header search */
.df-search-trigger {
    appearance: none;
    cursor: pointer;
    padding: 0!important
}

.df-search-trigger:hover {
    background: #2A1723!important;
    color: #fff!important
}

/* Discovery shortcuts */
.df-discovery-tools {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 12px 0 2px;
    scrollbar-width: none
}

.df-discovery-tools::-webkit-scrollbar {
    display: none
}

.df-discovery-tools a,.df-discovery-tools button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--df-line);
    border-radius: 999px;
    background: #fff;
    color: #24211e;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .055em;
    cursor: pointer;
    white-space: nowrap
}

.df-discovery-tools a:hover,.df-discovery-tools button:hover {
    border-color: #2A1723;
    background: #2A1723;
    color: #fff
}

.df-discovery-tools .surprise {
    background: #2A1723;
    color: #fff;
    border-color: #2A1723
}

.df-discovery-tools .surprise:hover {
    background: var(--df-pink);
    border-color: var(--df-pink)
}

/* Cards: secondary image + clearer interaction */
.df-product-image .df-card-img-primary,.df-product-image .df-card-img-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.df-card-img-primary {
    opacity: 1
}

.df-card-img-secondary {
    opacity: 0;
    transform: scale(1.02)!important;
    transition: opacity .32s ease,transform .45s ease!important
}

.df-card-peek {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    transform: translate(-50%,8px);
    opacity: 0;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2A1723;
    font-size: 7.5px;
    font-weight: 950;
    letter-spacing: .06em;
    white-space: nowrap;
    box-shadow: 0 8px 28px rgba(42,23,35,.12);
    transition: opacity .22s ease,transform .22s ease
}

.df-product-card:hover .df-card-img-secondary {
    opacity: 1;
    transform: scale(1)!important
}

.df-product-card:hover .df-card-img-primary {
    opacity: 0
}

.df-product-card:hover .df-card-peek {
    opacity: 1;
    transform: translate(-50%,0)
}

.df-product-card:hover .df-lastunits,.df-product-card:hover .df-soldout {
    opacity: .08
}

.df-card-colors {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: -2px 0 10px
}

.df-card-colors span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--swatch);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd8d2
}

.df-card-colors small {
    font-size: 8px;
    color: #817a74
}

/* Reveal */
.df-reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease,transform .5s cubic-bezier(.2,.75,.25,1)
}

.df-reveal-in {
    opacity: 1;
    transform: none
}

/* Search overlay */
.df-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(42,23,35,.58);
    backdrop-filter: blur(9px);
    padding: 12px;
    overflow: auto
}

.df-search-shell {
    width: min(760px,100%);
    margin: clamp(24px,8vh,90px) auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--df-r12-shadow);
    overflow: hidden
}

.df-search-modal-head {
    height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--df-line)
}

.df-search-modal-head strong {
    font-size: 9px;
    letter-spacing: .1em
}

.df-search-modal-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f1ee;
    font-size: 23px;
    cursor: pointer
}

.df-live-search {
    margin: 15px 15px 8px;
    min-height: 58px;
    border: 2px solid #2A1723;
    border-radius: 13px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px
}

.df-live-search>i {
    font-size: 15px
}

.df-live-search input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    background: transparent
}

.df-live-search kbd {
    font: 700 8px/1 sans-serif;
    border: 1px solid #ddd6cf;
    background: #f7f5f2;
    border-radius: 5px;
    padding: 5px;
    color: #888
}

.df-search-hint {
    padding: 7px 17px 12px;
    font-size: 9px;
    color: #77716b
}

.df-search-results {
    display: grid;
    padding: 0 10px 8px
}

.df-search-result {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 12px
}

.df-search-result:hover {
    background: #f8f6f3
}

.df-search-result-image {
    width: 64px;
    height: 76px;
    background: #f2efeb;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center
}

.df-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.df-search-result-image span {
    font-size: 7px;
    font-weight: 900
}

.df-search-result>div:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px
}

.df-search-result strong {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.df-search-result span {
    font-size: 11px;
    font-weight: 850
}

.df-search-result del {
    font-size: 8px;
    color: #aaa;
    font-weight: 500
}

.df-search-result small {
    font-size: 8px;
    color: #8d5b2e
}

.df-search-result>i {
    font-size: 10px
}

.df-search-empty {
    padding: 28px 17px;
    display: grid;
    gap: 6px;
    text-align: center
}

.df-search-empty strong {
    font-size: 14px
}

.df-search-empty span {
    font-size: 10px;
    color: #777
}

.df-search-all {
    min-height: 52px;
    margin: 4px 15px 15px;
    border-radius: 10px;
    background: #2A1723;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .06em
}

.df-search-all:hover {
    background: var(--df-pink)
}

/* Cart drawer */
.df-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 259;
    background: rgba(42,23,35,.40);
    backdrop-filter: blur(5px)
}

.df-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    width: min(430px,100%);
    background: #fff;
    box-shadow: -18px 0 60px rgba(42,23,35,.16);
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: translateX(105%);
    transition: transform .34s cubic-bezier(.2,.75,.25,1)
}

.df-cart-drawer.open {
    transform: none
}

.df-cart-drawer-head {
    min-height: 74px;
    padding: 0 17px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--df-line)
}

.df-cart-drawer-head>div {
    display: grid;
    gap: 3px
}

.df-cart-drawer-head span {
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--df-pink)
}

.df-cart-drawer-head strong {
    font-size: 20px;
    letter-spacing: -.04em
}

.df-cart-drawer-head button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f5f2ee;
    font-size: 24px;
    cursor: pointer
}

.df-cart-drawer-body {
    overflow: auto;
    padding: 10px 14px
}

.df-cart-loading {
    padding: 30px;
    text-align: center;
    font-size: 9px;
    color: #777
}

.df-mini-cart-item {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--df-line)
}

.df-mini-cart-image {
    width: 74px;
    height: 92px;
    background: #f2efeb;
    border-radius: 9px;
    overflow: hidden;
    display: grid;
    place-items: center
}

.df-mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.df-mini-cart-image span {
    font-size: 7px;
    font-weight: 900
}

.df-mini-cart-copy {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0
}

.df-mini-cart-copy strong {
    display: block;
    font-size: 11px;
    line-height: 1.3
}

.df-mini-cart-copy span {
    font-size: 8px;
    color: #777
}

.df-mini-cart-copy small {
    font-size: 9px;
    font-weight: 800
}

.df-mini-cart-side {
    display: grid;
    align-content: space-between;
    justify-items: end;
    gap: 8px
}

.df-mini-cart-side strong {
    font-size: 10px;
    white-space: nowrap
}

.df-mini-cart-side button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--df-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer
}

.df-mini-cart-side button:hover {
    background: #2A1723;
    color: #fff
}

.df-cart-drawer-empty {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 30px
}

.df-cart-drawer-empty>i {
    font-size: 27px;
    color: var(--df-pink)
}

.df-cart-drawer-empty strong {
    font-size: 17px
}

.df-cart-drawer-empty span {
    max-width: 240px;
    font-size: 10px;
    color: #777;
    line-height: 1.5
}

.df-cart-drawer-empty a {
    margin-top: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 9px;
    background: #2A1723;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 8px;
    font-weight: 900
}

.df-cart-drawer-foot {
    padding: 14px 16px max(16px,env(safe-area-inset-bottom));
    border-top: 1px solid var(--df-line);
    background: #fff;
    display: grid;
    gap: 8px
}

.df-cart-drawer-foot>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px 8px
}

.df-cart-drawer-foot span {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em
}

.df-cart-drawer-foot strong {
    font-size: 17px
}

.df-cart-drawer-foot>a {
    min-height: 48px;
    border-radius: 10px;
    background: #2A1723;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .055em
}

.df-cart-drawer-foot>a.secondary {
    background: #fff;
    color: #2A1723;
    border: 1px solid var(--df-line)
}

/* PDP gallery + mobile buy */
.df-zoom-modal[hidden] {
    display: none!important
}

.df-pdp-stage {
    touch-action: pan-y;
    cursor: zoom-in
}

.df-gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 6px 22px rgba(42,23,35,.1);
    cursor: pointer
}

.df-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(42,23,35,.96);
    display: grid;
    place-items: center;
    padding: 18px
}

.df-zoom-modal img {
    max-width: 100%;
    max-height: 94vh;
    object-fit: contain
}

.df-zoom-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 3;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #2A1723;
    font-size: 26px;
    cursor: pointer
}

.df-mobile-buybar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px,env(safe-area-inset-bottom));
    z-index: 120;
    min-height: 64px;
    padding: 8px 8px 8px 12px;
    border: 1px solid rgba(42,23,35,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(42,23,35,.16);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    transition: opacity .2s,transform .2s
}

.df-mobile-buybar.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none
}

.df-mobile-buybar>div {
    min-width: 0;
    display: grid;
    gap: 2px
}

.df-mobile-buybar small {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #777
}

.df-mobile-buybar strong {
    font-size: 14px
}

.df-mobile-buybar button {
    min-width: 136px;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #2A1723;
    color: #fff;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .055em
}

.df-mobile-buybar button:disabled {
    opacity: .4
}

/* Recent products */
.df-recent-section {
    margin: 34px 0 52px;
    padding-top: 28px;
    border-top: 1px solid var(--df-line)
}

.df-recent-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 7px
}

.df-recent-card {
    scroll-snap-align: start;
    min-width: 0
}

.df-recent-card>div {
    aspect-ratio: 3/4;
    border-radius: 9px;
    overflow: hidden;
    background: #f2efeb;
    display: grid;
    place-items: center
}

.df-recent-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.df-recent-card>div span {
    font-size: 7px;
    font-weight: 900
}

.df-recent-card strong {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.df-recent-card small {
    display: block;
    font-size: 10px;
    font-weight: 850;
    margin-top: 3px
}

@media(min-width: 760px) {
    .df-discovery-tools {
        justify-content:flex-end
    }

    .df-discovery-tools a,.df-discovery-tools button {
        min-height: 38px;
        padding: 0 13px
    }

    .df-recent-grid {
        grid-auto-columns: 22%
    }

    .df-mobile-buybar {
        display: none
    }
}

@media(max-width: 759px) {
    .df-header-actions {
        gap:5px
    }

    .df-header-icon-only {
        width: 39px!important
    }

    .df-account-link {
        display: none!important
    }

    .df-card-peek {
        display: none
    }

    .df-card-colors {
        margin-bottom: 8px
    }

    .df-product-card:hover .df-card-img-secondary {
        opacity: 0
    }

    .df-product-card:hover .df-card-img-primary {
        opacity: 1
    }

    .df-search-overlay {
        padding: 0
    }

    .df-search-shell {
        min-height: 100dvh;
        margin: 0;
        border-radius: 0
    }

    .df-live-search {
        margin-top: 11px
    }

    .df-cart-drawer {
        width: 100%
    }

    .df-zoom-modal {
        padding: 8px
    }

    .df-pdp {
        padding-bottom: 82px
    }
}

@media(prefers-reduced-motion:reduce) {
    .df-reveal-ready {
        opacity: 1;
        transform: none
    }

    .df-cart-drawer,.df-card-img-secondary,.df-card-peek,.df-mobile-buybar {
        transition: none!important
    }
}

/* Hero copy has a little rhythm instead of appearing as a flat block. */
.df-hero-slide .df-hero-copy>* {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .42s ease,transform .42s ease
}

.df-hero-slide.active .df-hero-copy>* {
    opacity: 1;
    transform: none
}

.df-hero-slide.active .df-hero-copy>*:nth-child(2) {
    transition-delay: .06s
}

.df-hero-slide.active .df-hero-copy>*:nth-child(3) {
    transition-delay: .12s
}

.df-hero-slide.active .df-hero-copy>*:nth-child(4) {
    transition-delay: .18s
}

.df-floating-filter {
    display: none
}

@media(max-width: 759px) {
    .df-floating-filter {
        position:fixed;
        right: 12px;
        bottom: max(14px,env(safe-area-inset-bottom));
        z-index: 110;
        min-height: 44px;
        padding: 0 15px;
        border: 0;
        border-radius: 999px;
        background: #2A1723;
        color: #fff;
        box-shadow: 0 10px 34px rgba(42,23,35,.2);
        align-items: center;
        gap: 8px;
        font-size: 8px;
        font-weight: 950;
        letter-spacing: .055em;
        transition: opacity .18s,transform .18s
    }

    .df-floating-filter:not(.is-hidden) {
        display: flex
    }

    .df-floating-filter.is-hidden {
        display: flex;
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .df-hero-slide .df-hero-copy>* {
        opacity: 1;
        transform: none;
        transition: none!important
    }

    .df-floating-filter {
        transition: none!important
    }
}
