/* Editorial layout with the established Difanny rose palette. */
body.difanny-editorial {
    --editorial-wide: 1600px;
    --editorial-inset: clamp(16px, 2.2vw, 38px);
    --editorial-rose-wash: #f4e8ec;
    --editorial-quiet: #f7f4f4;
    --editorial-ink: #30272b;
}
.difanny-editorial .df-site-chrome .df-global-shell {
    width: calc(100% - var(--editorial-inset) * 2);
    max-width: var(--editorial-wide);
}
.difanny-editorial .df-site-chrome .df-topbar {
    min-height: 30px;
    height: auto;
    background: var(--editorial-quiet);
    color: #68575e;
}
.difanny-editorial .df-site-chrome .df-topbar > .df-global-shell {
    min-height: 30px;
    height: auto;
    flex-wrap: wrap;
}
.difanny-editorial .df-site-chrome .df-top-links {
    min-height: 30px;
    flex-wrap: wrap;
    row-gap: 2px;
}
.difanny-editorial .df-editorial-promo {
    padding: 8px var(--editorial-inset);
    color: #572538;
    background: #ecd3dd;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.difanny-editorial .df-editorial-promo span {margin-left: 10px}
.difanny-editorial .df-site-chrome .df-header-main {
    justify-content: flex-start;
    min-height: 78px;
    gap: 24px;
    padding: 8px 0;
}
.difanny-editorial .df-site-chrome .df-logo {flex-basis: 172px}
.difanny-editorial .df-site-chrome .df-logo img {width: 172px;max-height: 64px;object-fit: contain}
.difanny-editorial .df-site-chrome .df-header-actions {gap: 16px}
.difanny-editorial .df-site-chrome .df-search-block {margin-left: auto;max-width: 400px}
.difanny-editorial .df-site-chrome .df-global-search {
    min-height: 43px;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid transparent;
    background: var(--editorial-quiet);
}
.difanny-editorial .df-site-chrome .df-global-search:focus-within {border-color: var(--df-rose)}
.difanny-editorial .df-site-chrome .df-global-search input {font-size: 13px}
.difanny-editorial .df-site-chrome .df-nav-item,
.difanny-editorial .df-site-chrome .df-all-category,
.difanny-editorial .df-site-chrome .df-nav-dropdown {min-height: 46px}
.difanny-editorial .df-site-chrome .df-main-nav {gap: 0 22px}
.difanny-editorial .df-site-chrome .df-menu-items {gap: 0 clamp(14px, 2vw, 30px)}
.difanny-editorial .df-site-chrome .df-all-category {width: auto;gap: 8px;font-weight: 600}
.difanny-editorial .df-site-chrome .df-all-category > span {margin: 0}
.difanny-editorial .df-site-chrome .df-mega-menu {
    border-radius: 0;
    box-shadow: 0 15px 25px #28141d26;
}
.difanny-editorial .df-site-chrome .df-editorial-category-nav {display: flex;align-items: center;gap: 2px}
.difanny-editorial .df-site-chrome .df-editorial-category-disclosure {position: static;height: auto}
.difanny-editorial .df-site-chrome .df-editorial-category-disclosure summary {
    display: grid;place-items: center;width: 30px;height: 40px;
}
.difanny-editorial .df-site-chrome .df-editorial-category-disclosure[open] summary {background: var(--editorial-rose-wash)}
.difanny-editorial .df-editorial-category-pop {
    position: absolute;inset: 100% 0 auto;z-index: 85;
    background: white;border-top: 1px solid var(--df-line);box-shadow: 0 18px 32px #28141d2b;
    padding: clamp(14px, 3vw, 38px);max-height: min(65vh, 580px);overflow: auto;
}
.difanny-editorial .df-editorial-category-heading {
    margin: 0 0 18px;padding-bottom: 13px;border-bottom: 1px solid var(--df-line);
    font-size: 17px;font-weight: 600;
}
.difanny-editorial .df-editorial-category-content {display: flex;align-items: flex-start;gap: clamp(18px, 3vw, 48px)}
.difanny-editorial .df-editorial-category-columns {
    display: grid;grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    flex: 1;min-width: 0;gap: 18px 26px;
}
.difanny-editorial .df-editorial-category-pop ul {list-style: none;margin: 0;padding: 0}
.difanny-editorial .df-editorial-category-pop a {overflow-wrap: anywhere}
.difanny-editorial .df-editorial-category-title {display: flex;align-items: center;margin-bottom: 6px;font-weight: 600}
.difanny-editorial .df-editorial-category-columns li li > a {display: inline-block;padding: 3px 0;color: #64535b}
.difanny-editorial .df-editorial-category-columns li li > a:hover {color: var(--df-rose);text-decoration: underline}
.difanny-editorial .df-editorial-category-photo {display: block;width: clamp(120px, 22vw, 295px);flex-shrink: 0}
.difanny-editorial .df-editorial-category-photo img {width: 100%;max-height: 300px;object-fit: contain;background: var(--editorial-quiet)}
.difanny-editorial .df-site-chrome :is(a,button,summary):focus-visible,
.difanny-editorial .df-editorial-brands :is(a,button):focus-visible {
    outline: 2px solid var(--df-rose);outline-offset: 2px;
}

/* ShopXO owns the banner data and slider events. */
body.difanny-editorial.difanny-home .df-home-lead {
    width: 100%;max-width: var(--editorial-wide);margin: 0 auto;padding: 0;gap: 0;
}
body.difanny-editorial.difanny-home .df-home-lead #goods-category {
    padding: 12px;margin: 0;background: var(--editorial-quiet);
}
body.difanny-editorial.difanny-home .df-home-lead .banner {
    border-radius: 0;background: var(--editorial-rose-wash);
}
body.difanny-editorial.difanny-home .df-home-lead .banner .am-slides li > a {
    display: block;max-width: none;height: auto;
}
body.difanny-editorial.difanny-home .df-home-lead .banner .am-slides img {
    aspect-ratio: 7 / 3;object-fit: contain;
}
.difanny-editorial #difanny-home-carousel .am-direction-nav {
    display: block;list-style: none;margin: 0;padding: 0;
}
.difanny-editorial #difanny-home-carousel .am-direction-nav a {
    display: grid;place-items: center;position: absolute;z-index: 2;top: 50%;
    width: 38px;height: 38px;transform: translateY(-50%);
    color: var(--df-rose);background: #fff;border: 1px solid var(--df-line);font-size: 26px;
}
.difanny-editorial #difanny-home-carousel .am-prev {left: 12px}
.difanny-editorial #difanny-home-carousel .am-next {right: 12px}
.difanny-editorial #difanny-home-carousel .am-direction-nav .am-disabled {opacity: .35;pointer-events: none}
.difanny-editorial #difanny-home-carousel .am-control-paging a {border-radius: 1px}
.difanny-editorial #difanny-home-carousel .am-control-paging .am-active {background: var(--df-rose)}
.difanny-editorial .df-editorial-brands {
    max-width: var(--editorial-wide);margin: 0 auto;position: relative;padding: 0 48px;
    border-bottom: 1px solid var(--df-line);
}
.difanny-editorial .df-brand-track {
    display: flex;overflow-x: auto;scroll-snap-type: x proximity;gap: 14px;
    padding: 8px 4px;scrollbar-width: thin;scrollbar-color: #e5cdd7 transparent;
}
.difanny-editorial .df-brand-track .df-managed-brand {
    flex: 0 0 100px;min-height: 62px;padding: 7px;border: 0;
    text-align: center;scroll-snap-align: start;
}
.difanny-editorial .df-brand-track .df-managed-brand-logo {max-width: 86px;max-height: 42px}
.difanny-editorial .df-brand-track .df-managed-brand-name {font: 600 13px/1.35 var(--df-font)}
.difanny-editorial .df-brand-arrow {
    position: absolute;top: 50%;transform: translateY(-50%);
    width: 36px;height: 40px;border: 0;background: white;color: var(--df-rose);font-size: 24px;cursor: pointer;
}
.difanny-editorial .df-brand-arrow[data-df-brand-direction="-1"] {left: 6px}
.difanny-editorial .df-brand-arrow[data-df-brand-direction="1"] {right: 6px}
.difanny-editorial .df-brand-arrow:disabled {opacity: .25;cursor: default}
.difanny-editorial.difanny-home .items-nav-title:before {content: none}
.difanny-editorial.difanny-home .items-nav-title .floor-title {font-weight: 500;color: var(--editorial-ink)}
.difanny-editorial .module-goods-grid-base .item .goods-info {background: var(--editorial-quiet)}
.difanny-editorial.difanny-home .floor .word .outer {height: auto;white-space: normal;overflow-wrap: anywhere}
.difanny-editorial .df-site-footer {background: #f8f1f4}
.difanny-editorial .df-site-footer .df-footer-shell {max-width: var(--editorial-wide)}

/* Product presentation around the native price, stock, SKU, cart and tab modules. */
.difanny-editorial .df-editorial-product-brand {
    display: flex;justify-content: center;align-items: center;
    min-height: 48px;margin: 0 auto;padding: 8px var(--editorial-inset);
    border-bottom: 1px solid var(--df-line);background: #fff;text-align: center;
}
.difanny-editorial .df-editorial-product-brand a {
    color: var(--editorial-ink);font: 500 clamp(18px, 2vw, 26px)/1.25 Georgia, serif;letter-spacing: .04em;
}
.difanny-editorial .system-goods-detail .tb-detail-hd .detail-title {
    color: var(--editorial-ink);font-weight: 500;line-height: 1.3;overflow-wrap: anywhere;
}
.difanny-editorial .system-goods-detail .tb-detail-panel-top-price-content {background: var(--editorial-rose-wash)}
.difanny-editorial .system-goods-detail .goods-sale-price-value {color: var(--df-rose)}
.difanny-editorial .system-goods-detail .theme-signin-left .sku-line.selected {
    background: var(--editorial-rose-wash);color: #572538;border-color: var(--df-rose);
}
.difanny-editorial .system-goods-detail .buy-nav .buy-submit-container .am-btn {border-radius: 0}
.difanny-editorial .system-goods-detail .introduce-main .am-nav-tabs {border-bottom-color: var(--df-line)}
@media (min-width: 641px) {
    body.difanny-editorial .system-goods-detail .item-inform {
        display: grid;grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: clamp(18px, 3vw, 52px);max-width: var(--editorial-wide);
        padding-inline: var(--editorial-inset);margin-inline: auto;
    }
    .difanny-editorial .system-goods-detail .item-inform::before,
    .difanny-editorial .system-goods-detail .item-inform::after {content: none}
    .difanny-editorial .system-goods-detail .item-inform .clearfix-left,
    .difanny-editorial .system-goods-detail .item-inform .clearfix-right {
        float: none;width: auto;min-width: 0;margin: 0;
    }
    .difanny-editorial .system-goods-detail .tb-detail-hd .detail-title {font-size: clamp(22px, 2.1vw, 34px)}
    .difanny-editorial .system-goods-detail .clearfix-left .box {background: var(--editorial-quiet);border-radius: 0}
    .difanny-editorial .system-goods-detail .tb-booth {
        aspect-ratio: 1 / 1;height: auto;padding: 8% 5% 8% 16%;border: 0;border-radius: 0;
    }
    .difanny-editorial .system-goods-detail .tb-booth img {max-width: 100%;max-height: 100%;object-fit: contain}
    .difanny-editorial .system-goods-detail .df-editorial-thumbnails {
        position: absolute;top: 10px;left: 9px;z-index: 2;max-height: calc(100% - 20px);
        overflow: auto;width: 62px;height: auto;padding: 2px;
    }
    .difanny-editorial .df-editorial-thumbnails .am-slides {margin: 0;padding: 0;list-style: none}
    .difanny-editorial .df-editorial-thumbnails .am-slides li {
        float: none;width: 100% !important;height: auto;aspect-ratio: 1;border: 1px solid #e7dce0;
        margin: 0 0 8px;padding: 0;background: white;border-radius: 0;
    }
    .difanny-editorial .df-editorial-thumbnails button {
        width: 100%;height: 100%;padding: 2px;border: 0;background: white;cursor: pointer;
    }
    .difanny-editorial .df-editorial-thumbnails button:focus-visible {outline: 2px solid var(--df-rose);outline-offset: -2px}
    .difanny-editorial .df-editorial-thumbnails .am-slides li img {width: 100% !important;height: 100%;object-fit: contain;border-radius: 0}
    .difanny-editorial .df-editorial-thumbnails .am-slides .tb-selected {border-color: var(--df-rose)}
}
@media (min-width: 1025px) {
    .difanny-editorial .system-goods-detail .sku-items-only-one {display: block}
    .difanny-editorial .system-goods-detail .sku-items-only-one > ul {display: grid;gap: 6px;width: 100%;padding: 0}
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-line {
        display: flex;align-items: center;justify-content: space-between;
        gap: 12px;float: none;min-height: 44px;margin: 0;padding: 7px 11px;border-radius: 0;
    }
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-line::before {
        content: "";display: block;width: 14px;height: 14px;border: 1px solid #967784;border-radius: 50%;flex: 0 0 14px;
    }
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-line.selected::before {
        border: 4px solid var(--df-rose);background: white;
    }
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-card-main {flex: 1;min-width: 0}
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-name {height: auto;line-height: 1.4;overflow-wrap: anywhere}
    .difanny-editorial .system-goods-detail .sku-items-only-one .sku-card-price {display: inline-block}
    .difanny-editorial .system-goods-detail .sku-items-only-one .icon-subscript {display: none}
}
@media (max-width: 700px) {
    .difanny-editorial .df-site-chrome .df-header-main {min-height: 0;gap: 8px;padding: 8px 0 10px}
    .difanny-editorial .df-site-chrome .df-logo,
    .difanny-editorial .df-site-chrome .df-logo img {width: 132px}
    .difanny-editorial .df-site-chrome .df-header-actions {gap: 7px}
    .difanny-editorial .df-site-chrome .df-search-block {width: 100%;max-width: none;margin: 0}
    .difanny-editorial .df-site-chrome .df-global-search {min-height: 36px}
    .difanny-editorial .df-site-chrome .df-main-nav {padding: 0;gap: 0 12px}
    .difanny-editorial .df-site-chrome .df-menu-items {gap: 0 12px}
    .difanny-editorial .df-site-chrome .df-nav-item,
    .difanny-editorial .df-site-chrome .df-all-category,
    .difanny-editorial .df-site-chrome .df-nav-dropdown {min-height: 36px}
    .difanny-editorial .df-site-chrome .df-editorial-category-disclosure summary {width: 25px;height: 34px}
    .difanny-editorial .df-editorial-category-columns {grid-template-columns: repeat(2,minmax(0,1fr));gap: 14px}
    .difanny-editorial .df-editorial-category-photo {display: none}
    .difanny-editorial .df-editorial-brands {padding: 0 31px}
    .difanny-editorial .df-brand-arrow {width: 26px}
    .difanny-editorial .df-brand-arrow[data-df-brand-direction="-1"] {left: 1px}
    .difanny-editorial .df-brand-arrow[data-df-brand-direction="1"] {right: 1px}
    .difanny-editorial .df-brand-track {gap: 8px}
    .difanny-editorial .df-brand-track .df-managed-brand {flex-basis: 82px;min-height: 54px}
    .difanny-editorial .df-brand-track .df-managed-brand-logo {max-width: 68px;max-height: 34px}
    .difanny-editorial #difanny-home-carousel .am-direction-nav a {width: 29px;height: 31px;font-size: 22px}
}

/* Keep native controls in the header flow, including installed plugin content. */
.difanny-editorial .df-site-chrome .df-search-block {
    flex: 1 1 460px;
    max-width: 520px;
    margin-inline: auto;
}
body.difanny-editorial .df-global-search #ai-topsearch.df-editorial-search-submit {
    position: static;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    padding: 6px 2px 6px 9px;
    white-space: nowrap;
}
.difanny-editorial .df-site-chrome .df-header-actions .plugins-intellectstools-search-right-cart {
    position: relative;
    inset: auto;
    margin: 0;
    float: none;
    flex: 0 0 auto;
}
.difanny-editorial .df-site-chrome .df-header-actions .search-right-cart-submit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: var(--df-rose);
}
@media (min-width: 701px) {
    .difanny-editorial .df-header-actions:has(.plugins-intellectstools-search-right-cart .search-right-cart-submit) > .df-bag-button {
        display: none;
    }
}
@media (max-width: 700px) {
    .difanny-editorial .df-site-chrome .df-search-block {margin: 0}
    .difanny-editorial .df-header-actions .plugins-intellectstools-search-right-cart {display: none}
}
.difanny-editorial .df-home-lead[hidden] {display: none !important}
.difanny-editorial #difanny-home-carousel .am-slider-manual > .am-slides > li:first-child {
    display: block;
}
.difanny-editorial .df-editorial-promo-label {margin-left: 0}
