/* ==========================================================================
   Be Young site shell: top bar (search / sign in / cart), logo + menu bar,
   home slider and footer of DWCMaster.master.

   The header markup and its script hooks (ids, .menu, .login-sec, .cart-sec,
   #headerCart ...) are unchanged; this file re-skins them on top of the old
   rules in bundles/mainCssfd25.css and the master's inline <style>. The cart
   dropdown and the search suggestions are HTML built on the server / by
   scripts, so they are styled through their existing class names.
   Colours come from css/beyoung-theme.css.
   ========================================================================== */

/* The two fixed header bars are now 40 + 64 = 104px tall (they were 92px), so the
   page content is pushed down by the difference. */
.wrapper
{
    padding-top: 12px;
}

/* ---------- Top bar ---------- */
header
{
    position: fixed;
    top: 0;
    left: 0;
    float: none;
    width: 100%;
    height: 40px;
    margin: 0;
    border-radius: 0;
    background: #5c1a6e;
    background: linear-gradient(90deg, #3f1456 0%, #6d1d78 60%, #8e1f7a 100%);
    font-family: var(--by-font);
    z-index: 99;
}

header .header-container
{
    padding-top: 0;
    padding-bottom: 0;
}

header .header-right
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    float: none;
    height: 40px;
}

/* the top bar items no longer slide in on every page load */
header .wow
{
    visibility: visible !important;
    animation: none !important;
}

/* search */
header .header-search
{
    float: none;
    margin-right: 14px;
    padding: 0;
}

header .header-search span
{
    display: block;
}

header .mainsearch
{
    width: 300px;
    height: 28px;
    padding: 0 14px 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center;
    font-family: var(--by-font);
    font-size: 13px;
    letter-spacing: .2px;
    text-transform: none;
    cursor: text;
    transition: width .2s ease, background-color .2s ease, border-color .2s ease;
}

header .mainsearch:hover
{
    background-color: rgba(255, 255, 255, 0.2);
}

header .mainsearch:focus
{
    width: 400px;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.24);
}

header .mainsearch::placeholder
{
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ---------- product search: list of matching products (js/shell-search.js) ---------- */
header .header-search
{
    position: relative;
}

header .header-search.is-searching .mainsearch
{
    width: 400px;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.24);
}

header .mainsearch
{
    padding-right: 32px;
}

header .by-search-clear
{
    position: absolute;
    right: 5px;
    top: 50%;
    display: none;
    width: 20px;
    height: 20px;
    margin: -10px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 19px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

header .by-search-clear:hover
{
    background: rgba(255, 255, 255, 0.4);
}

header .by-search-panel
{
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 2000;
    display: none;
    width: 420px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid var(--by-border-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(31, 8, 43, 0.3);
    overflow-y: auto;
    font-family: var(--by-font);
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    scrollbar-width: thin;
    scrollbar-color: #d5c3dc transparent;
}

header .by-search-panel.is-open
{
    display: block;
}

header .by-search-head
{
    padding: 6px 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--by-text-faint);
}

header .by-search-item, header .by-search-item:focus
{
    display: flex;
    align-items: center;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: none;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    color: var(--by-text-soft);
}

header .by-search-item:hover, header .by-search-item.is-active
{
    background: #f6eef5;
    text-decoration: none;
    color: var(--by-text);
}

header .by-search-thumb
{
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: 12px;
    border: 1px solid var(--by-border-soft);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d5c3dc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 9'/%3E%3C/svg%3E") no-repeat center;
    overflow: hidden;
}

header .by-search-thumb img
{
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    background: #fff;
    object-fit: contain;
}

header .by-search-name
{
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

header .by-search-name b
{
    font-weight: 700;
    color: var(--by-primary);
}

header .by-search-go
{
    flex: 0 0 auto;
    margin-left: 10px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    color: var(--by-text-faint);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

header .by-search-item:hover .by-search-go, header .by-search-item.is-active .by-search-go
{
    color: var(--by-primary);
    opacity: 1;
    transform: none;
}

header .by-search-msg
{
    padding: 22px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--by-text-soft);
}

header .by-search-msg b
{
    color: var(--by-text);
}

header .by-search-msg span
{
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--by-text-muted);
}

header .by-search-spin
{
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #e3d3e6;
    border-top-color: var(--by-primary);
    border-radius: 50%;
    vertical-align: -2px;
    animation: by-search-spin .7s linear infinite;
}

@keyframes by-search-spin
{
    to { transform: rotate(360deg); }
}

/* search suggestions (list built by the AutoComplete extender) */
header .search
{
    width: 400px !important;
    max-height: 430px;
    margin-top: 10px;
    padding: 8px !important;
    border: 1px solid var(--by-border-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(31, 8, 43, 0.26);
    overflow-y: auto;
    font-family: var(--by-font);
    text-transform: none;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #d5c3dc transparent;
}

header .search::-webkit-scrollbar
{
    width: 6px;
}

header .search::-webkit-scrollbar-thumb
{
    border-radius: 6px;
    background: #d5c3dc;
}

/* each suggestion: small search icon on the left, typed letters picked out in purple */
header .search .li-font,
header .search .autocomplete_highlightedListItem
{
    margin: 0;
    padding: 9px 12px 9px 38px;
    border-radius: 9px;
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%23a79db0' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='%23a79db0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px 12px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    list-style: none;
    color: var(--by-text-soft);
    cursor: pointer;
}

header .search .li-font + .li-font,
header .search .li-font + .autocomplete_highlightedListItem,
header .search .autocomplete_highlightedListItem + .li-font
{
    margin-top: 2px;
}

header .search li b
{
    font-weight: 700;
    color: var(--by-primary);
}

header .search .autocomplete_highlightedListItem
{
    background-color: #f6eef5;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%238e1f7a' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='%238e1f7a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    color: var(--by-text);
}

/* sign in links */
header .login-sec
{
    float: none;
    padding: 0;
    background: none;
}

header .login-sec > a
{
    display: block;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    line-height: 16px;
    color: #fff;
}

header .login-sec > a:hover
{
    color: #f3cfe6;
}

/* cart */
header .cart-sec
{
    float: none;
    padding: 0;
    background: none;
}

/* CartItem.js opens the list on mouseover of #headerCart and closes it on mouseout, so the
   hover area has to reach the list with no gap: #headerCart fills the bar height and the
   list starts exactly at its bottom edge. The :hover rule (it beats the inline display:none)
   keeps the list open while the pointer travels between the link and the list. */
header #headerCart
{
    display: flex;
    align-items: center;
    height: 40px;
}

header #headerCart:hover #ulHeaderCart
{
    display: block !important;
}

header .top-cart-row .dropdown-cart .lnk-cart
{
    display: block;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    line-height: 16px;
}

header .top-cart-row .dropdown-cart .lnk-cart .items-cart-inner
{
    display: flex;
    align-items: center;
    position: relative;
}

header .top-cart-row .dropdown-cart .lnk-cart .items-cart-inner .basket
{
    float: none;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 16px;
}

header .top-cart-row .dropdown-cart .lnk-cart .items-cart-inner .basket-item-count
{
    position: absolute;
    left: 10px;
    top: -9px;
    width: auto;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    color: var(--by-primary-dark);
}

header .top-cart-row .dropdown-cart .lnk-cart .items-cart-inner .total-price-basket
{
    float: none;
    padding: 0 0 0 16px;
    font-family: var(--by-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
}

/* cart dropdown (built in WebMethods.aspx.cs) */
header .top-cart-row .dropdown-cart .dropdown-menu
{
    top: 100%;
    width: 360px;
    max-height: calc(100vh - 60px);
    margin-top: 0;
    padding: 0 16px 16px;
    border: 1px solid var(--by-border-soft);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 52px rgba(31, 8, 43, 0.28);
    overflow-y: auto;
    font-family: var(--by-font);
    text-transform: none;
    color: var(--by-text);
    counter-reset: by-cart-items;
    scrollbar-width: thin;
    scrollbar-color: #d5c3dc transparent;
}

/* title bar; the item count further down comes from a CSS counter over the .cart-item rows */
header .top-cart-row .dropdown-cart .dropdown-menu > li
{
    display: flex;
    flex-direction: column;
    list-style: none;
}

header .top-cart-row .dropdown-cart .dropdown-menu > li:before
{
    content: "Your Cart";
    order: -2;
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 -16px 6px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--by-border-soft);
    background: #faf7fc;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--by-primary-dark);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary
{
    counter-increment: by-cart-items;
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background-color .15s ease;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary:hover
{
    background: #faf7fc;
}

header .top-cart-row .dropdown-cart .dropdown-menu .clear
{
    display: none;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .row
{
    display: flex;
    align-items: center;
    margin: 0;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .row > div
{
    float: none;
    padding: 0;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .col-xs-3
{
    flex: 0 0 46px;
    width: 46px;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .col-xs-7
{
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0 12px;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .image img
{
    width: 46px;
    height: 46px;
    border: 1px solid var(--by-border-soft);
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .name
{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 4px;
    padding: 0;
    font-family: var(--by-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .name a
{
    color: var(--by-text);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .price
{
    font-size: 14px;
    font-weight: 700;
    color: var(--by-primary);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .action
{
    position: static;
    flex: 0 0 32px;
    width: 32px;
    font-size: 15px;
    text-align: center;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .action a
{
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    line-height: 32px;
    color: #8a7f94;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-item.product-summary .action a:hover
{
    background: var(--by-danger-bg);
    color: var(--by-danger);
}

header .top-cart-row .dropdown-cart .dropdown-menu hr
{
    margin: 2px 0;
    border: 0;
    border-top: 1px solid var(--by-border-soft);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-total
{
    margin-top: 10px;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-total .pull-right
{
    float: none !important;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6eef5;
}

/* "3 items" on its own line under the Sub Total label */
header .top-cart-row .dropdown-cart .dropdown-menu .cart-total .text:after
{
    content: counter(by-cart-items) " item(s)";
    display: block;
    font-size: 12px;
    font-weight: 400;
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-total .text
{
    margin: 0;
    font-family: var(--by-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--by-text-muted);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-total .price
{
    font-size: 17px;
    font-weight: 700;
    color: var(--by-primary);
}

header .top-cart-row .dropdown-cart .dropdown-menu .cart-total .btn
{
    height: 44px;
    margin: 14px 0 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--by-radius);
    background: var(--by-primary);
    background: var(--by-gradient);
    box-shadow: 0 8px 20px rgba(142, 31, 122, 0.28);
    font-family: var(--by-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 44px;
}

/* ---------- Logo + menu bar ---------- */
.header-inner
{
    top: 40px;
    height: 64px;
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 14px rgba(63, 20, 86, 0.1);
}

.header-inner .logo-corner
{
    display: none;
}

.header-inner .logo-left
{
    float: none;
    height: 64px;
    padding: 7px 0 0;
    background: transparent;
    line-height: normal;
}

.header-inner .logo-left img
{
    display: block;
    width: auto;
    max-width: none;
    height: 50px;
}

.header-inner .hdr-scroll-container
{
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner .scroll-nav
{
    padding-top: 0;
}

/* the logo lines up with the left edge of the page container */
@media (min-width: 728px)
{
    .header-inner .logo-inner
    {
        position: absolute;
        left: 16px;
        top: 0;
        float: none;
    }
}

@media (min-width: 768px)
{
    .header-inner .logo-inner
    {
        left: calc((100% - 720px) / 2);
    }
}

@media (min-width: 992px)
{
    .header-inner .logo-inner
    {
        left: calc((100% - 940px) / 2);
    }
}

@media (min-width: 1200px)
{
    .header-inner .logo-inner
    {
        left: calc((100% - 1140px) / 2);
    }
}

/* no dark browser outline left behind after a tap or click; keyboard focus keeps a soft ring */
.header-inner .menu a:focus
{
    outline: 0;
}

.header-inner .menu a:focus-visible
{
    outline: 2px solid rgba(142, 31, 122, 0.45);
    outline-offset: -2px;
}

/* desktop menu (below 960px the menu script switches to the hamburger panel) */
@media (min-width: 960px)
{
    .header-inner .menu > ul > li
    {
        margin: 0 0 0 26px;
    }

    .header-inner .menu > ul > li > a
    {
        position: relative;
        height: 64px;
        padding: 0;
        font-family: var(--by-font);
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: .5px;
        line-height: 64px;
        color: var(--by-text);
    }

    .header-inner .menu > ul > li > a:after
    {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 14px;
        height: 2px;
        border-radius: 2px;
        background: var(--by-gradient);
        transform: scaleX(0);
        transition: transform .18s ease;
    }

    .header-inner .menu > ul > li:hover > a
    {
        color: var(--by-primary);
    }

    /* the old hover marker (a second line with a small arrow) is replaced by the line above */
    .header-inner .menu .active-arrow
    {
        display: none !important;
    }

    .header-inner .menu > ul > li:hover > a:after
    {
        transform: scaleX(1);
    }

    .header-inner .menu > ul > li > ul,
    .header-inner .menu > ul > li > ul.normal-sub
    {
        top: 64px;
        width: 260px;
        padding: 8px;
        border: 0;
        border-radius: 0 0 14px 14px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(63, 20, 86, 0.18);
    }

    .header-inner .menu > ul > li > ul.normal-sub > li a
    {
        padding: 9px 12px;
        border-radius: 8px;
        font-family: var(--by-font);
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: .3px;
        line-height: 1.4;
        color: var(--by-text-soft);
    }

    .header-inner .menu > ul > li > ul.normal-sub > li a:hover
    {
        background: #f6eef5;
        color: var(--by-primary);
    }
}

/* ---------- Mobile menu (hamburger panel, below 960px) ----------
   The menu script only toggles ".show-on-mobile" on the <ul> and fades a sub list in or out
   when its row is tapped; it sets no "open" class, so the open states below use :has(). */
@media (max-width: 959px)
{
    /* hamburger button drawn in CSS (three lines, turning into a cross while the panel is open) */
    .header-inner .menu-mobile
    {
        top: 10px;
        right: 8px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 10px;
        background: none;
    }

    .header-inner .menu-mobile:before,
    .header-inner .menu-mobile:after
    {
        content: "";
        position: absolute;
        left: 11px;
        right: 11px;
        top: 14px;
        float: none;
        height: 2px;
        padding: 0;
        border-radius: 2px;
        background: var(--by-primary-dark);
        transform: none;
        transition: transform .2s ease, top .2s ease, box-shadow .2s ease;
    }

    .header-inner .menu-mobile:before
    {
        box-shadow: 0 7px 0 var(--by-primary-dark), 0 14px 0 var(--by-primary-dark);
    }

    .header-inner .menu-mobile:after
    {
        top: 21px;
        opacity: 0;
    }

    .header-inner .menu-mobile:has(+ .show-on-mobile)
    {
        background: #f6eef5;
    }

    .header-inner .menu-mobile:has(+ .show-on-mobile):before
    {
        top: 21px;
        box-shadow: none;
        transform: rotate(45deg);
    }

    .header-inner .menu-mobile:has(+ .show-on-mobile):after
    {
        opacity: 1;
        transform: rotate(-45deg);
    }

    /* full-width panel under the header */
    .header-inner .menu .show-on-mobile
    {
        position: fixed;
        left: 0;
        right: 0;
        top: 104px;
        width: auto;
        max-height: calc(100vh - 104px);
        margin: 0;
        padding: 6px 16px 16px;
        border-top: 1px solid var(--by-border-soft);
        background: #fff;
        box-shadow: 0 24px 40px rgba(31, 8, 43, 0.22);
        overflow-y: auto;
    }

    .header-inner .menu > ul > li
    {
        position: relative;
        margin: 0;
        border-bottom: 1px solid var(--by-border-soft);
    }

    .header-inner .menu > ul > li:last-child
    {
        border-bottom: 0;
    }

    .header-inner .menu > ul > li > a
    {
        width: auto;
        padding: 15px 44px 15px 4px;
        font-family: var(--by-font);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .4px;
        line-height: 20px;
        color: var(--by-text);
    }

    /* rows with a sub list: a chevron at the right edge instead of the old "+" box */
    .header-inner .menu > ul > li.menu-dropdown-icon:before
    {
        content: "";
        display: block;
        position: absolute;
        right: 10px;
        top: 19px;
        float: none;
        width: 9px;
        height: 9px;
        padding: 0;
        border: solid var(--by-primary);
        border-width: 0 2px 2px 0;
        background: none;
        transform: rotate(45deg);
        transition: transform .2s ease, top .2s ease;
        pointer-events: none;
    }

    .header-inner .menu > ul > li.menu-dropdown-icon:has(> ul[style*="block"]):before
    {
        top: 24px;
        transform: rotate(-135deg);
    }

    .header-inner .menu > ul > li.menu-dropdown-icon:has(> ul[style*="block"]) > a
    {
        color: var(--by-primary);
    }

    /* sub list opens inside the row, on a tinted block */
    .header-inner .menu > ul > li > ul,
    .header-inner .menu > ul > li > ul.normal-sub
    {
        position: static;
        width: auto;
        max-height: none;
        margin: 0 0 12px;
        padding: 6px;
        border: 0;
        border-radius: 12px;
        background: #faf7fc;
        box-shadow: none;
        overflow: visible;
    }

    .header-inner .menu > ul > li > ul.normal-sub > li
    {
        width: auto;
        font-size: 13px;
    }

    .header-inner .menu > ul > li > ul.normal-sub > li a,
    .header-inner .menu > ul > li > ul > li a
    {
        width: auto;
        padding: 11px 12px;
        border-radius: 8px;
        font-family: var(--by-font);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .3px;
        line-height: 18px;
        color: var(--by-text-soft);
    }

    .header-inner .menu > ul > li > ul > li a:active
    {
        background: #f0e2f0;
        color: var(--by-primary);
    }
}

@media (max-width: 727px)
{
    .wrapper
    {
        padding-top: 8px;
    }

    header
    {
        height: 36px;
    }

    header .header-right
    {
        height: 36px;
    }

    header #headerCart
    {
        height: 36px;
    }

    header .login-sec > a
    {
        padding: 0 10px;
        font-size: 11.5px;
    }

    header .login-sec:first-of-type > a,
    header .header-search + .login-sec > a
    {
        border-left: 0;
    }

    .header-inner
    {
        top: 36px;
        height: 60px;
    }

    .header-inner .logo-left
    {
        height: 60px;
        padding: 8px 0 0 12px;
    }

    .header-inner .logo-left img
    {
        height: 44px;
    }

    .header-inner .menu-mobile
    {
        top: 8px;
        right: 6px;
    }

    .header-inner .menu .show-on-mobile
    {
        top: 96px;
        max-height: calc(100vh - 96px);
    }
}

/* ---------- Home slider ---------- */
/* the banner starts right below the header instead of sliding 32px underneath it
   (.wrapper already adds 12px, or 8px on small screens) */
.main_slider
{
    margin-top: 0;
    padding-top: 92px;
}

@media (max-width: 727px)
{
    .main_slider
    {
        padding-top: 88px;
    }
}

.main_slider .carousel-control
{
    top: 50%;
    bottom: auto;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    background: rgba(31, 8, 43, 0.45);
    background-image: none;
    opacity: 1;
    text-shadow: none;
    transition: background-color .15s ease;
}

.main_slider .carousel-control.left
{
    left: 22px;
}

.main_slider .carousel-control.right
{
    right: 22px;
}

.main_slider .carousel-control:hover, .main_slider .carousel-control:focus
{
    background-color: var(--by-primary);
}

.main_slider .carousel-control .glyphicon
{
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 16px;
    line-height: 46px;
}

.main_slider .carousel-indicators
{
    bottom: 14px;
    margin-bottom: 0;
}

.main_slider .carousel-indicators li,
.main_slider .carousel-indicators li.active
{
    width: 26px;
    height: 4px;
    margin: 0 3px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.main_slider .carousel-indicators li.active
{
    background: #fff;
}

@media (max-width: 767px)
{
    .main_slider .carousel-control
    {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }

    .main_slider .carousel-control.left
    {
        left: 10px;
    }

    .main_slider .carousel-control.right
    {
        right: 10px;
    }

    .main_slider .carousel-control .glyphicon
    {
        font-size: 12px;
        line-height: 34px;
    }

    .main_slider .carousel-indicators
    {
        bottom: 6px;
    }
}

/* ---------- Footer ---------- */
.site-footer
{
    margin-top: 40px;
    font-family: var(--by-font);
}

.site-footer-container
{
    max-width: 1172px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-footer-main
{
    padding: 40px 0 34px;
    border-top: 1px solid var(--by-border-soft);
    background: #fff;
}

.site-footer-main .site-footer-container
{
    display: flex;
    align-items: flex-start;
}

.site-footer-brand
{
    flex: 0 0 170px;
    padding-right: 36px;
    margin-right: 36px;
    border-right: 3px solid var(--by-primary);
    text-align: center;
}

.site-footer-brand img
{
    max-width: 100%;
    height: auto;
}

.site-footer-info
{
    flex: 1;
    min-width: 0;
}

.site-footer-disclaimer
{
    margin: 0 0 20px;
    column-count: 2;
    column-gap: 36px;
    font-family: var(--by-font);
    font-size: 12.5px;
    line-height: 1.7;
    text-align: left;
    color: var(--by-text-muted);
}

.site-footer-disclaimer b
{
    color: var(--by-text-soft);
}

.site-footer-social
{
    display: flex;
    flex-wrap: wrap;
}

.site-footer-social a
{
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 10px 0 0;
    border-radius: 50%;
    background: var(--by-primary-dark);
    font-size: 17px;
    line-height: 38px;
    text-align: center;
    color: #fff;
    transition: background-color .15s ease, transform .15s ease;
}

.site-footer-social a:hover, .site-footer-social a:focus
{
    background: var(--by-accent);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer-social a .fa
{
    font-size: 17px;
    line-height: 38px;
    vertical-align: top !important;
}

.site-footer-social a img
{
    width: 18px;
    height: 18px;
    margin-top: 10px;
    vertical-align: top;
}

.site-footer-bar
{
    padding: 16px 0;
    background: #3f1456;
    background: linear-gradient(90deg, #3f1456 0%, #6d1d78 60%, #8e1f7a 100%);
}

.site-footer-bar .site-footer-container
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer-links
{
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links li
{
    margin: 3px 22px 3px 0;
    padding: 0;
    list-style: none;
}

.site-footer-links a
{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-footer-links a:hover, .site-footer-links a:focus
{
    color: #fff;
    text-decoration: underline;
}

.site-footer-copy
{
    flex: 0 0 auto;
    margin: 0 0 0 24px;
    font-family: var(--by-font);
    font-size: 13px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 991px)
{
    .site-footer-disclaimer
    {
        column-count: 1;
    }

    .site-footer-bar .site-footer-container
    {
        display: block;
        text-align: center;
    }

    .site-footer-links
    {
        justify-content: center;
    }

    .site-footer-links li
    {
        margin: 4px 11px;
    }

    .site-footer-copy
    {
        margin: 12px 0 0;
        white-space: normal;
    }
}

@media (max-width: 767px)
{
    .site-footer-main
    {
        padding: 30px 0 26px;
    }

    .site-footer-main .site-footer-container
    {
        display: block;
    }

    .site-footer-brand
    {
        margin: 0 0 22px;
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 3px solid var(--by-primary);
    }

    .site-footer-brand img
    {
        max-height: 170px;
    }

    .site-footer-social
    {
        justify-content: center;
    }

    .site-footer-social a
    {
        margin: 0 5px;
    }
}

/* ---------- product search on a phone (by-search-mobile): a round search button in the top
   bar; a tap opens the box across the whole bar with the products listed under it ---------- */
@media (max-width: 991px)
{
    header .header-search
    {
        display: block !important;
        position: static;
        margin: 0 auto 0 8px;
    }

    header .mainsearch, header .mainsearch:hover
    {
        width: 30px;
        height: 28px;
        padding: 0;
        background-position: center;
        color: transparent !important;
        cursor: pointer;
        transition: none;
    }

    header .mainsearch::placeholder
    {
        color: transparent !important;
    }

    header .header-search:focus-within, header .header-search.is-searching
    {
        position: absolute;
        left: 8px;
        right: 8px;
        top: 4px;
        z-index: 2100;
        margin: 0;
    }

    header .header-search:focus-within .mainsearch, header .header-search.is-searching .mainsearch
    {
        width: 100%;
        padding: 0 34px 0 34px;
        border-color: rgba(255, 255, 255, 0.5);
        background-color: #5a1a68;
        background-position: 12px center;
        font-size: 16px;
        color: #fff !important;
        cursor: text;
    }

    header .header-search:focus-within .mainsearch::placeholder
    {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    header .by-search-panel
    {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        max-height: 72vh;
        margin-top: 8px;
    }
}

/* ==========================================================================
   Login / Register popup (#userPopup in DWCMaster.master), opened by Place Order
   on the cart when the visitor is not signed in. Magnific Popup shows it.
   ========================================================================== */
#userPopup.by-auth
{
    position: relative;
    width: auto;
    max-width: 860px;
    margin: 24px auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 30px 70px rgba(31, 8, 43, 0.4);
    overflow: hidden;
    font-family: var(--by-font);
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    color: var(--by-text);
}

#userPopup.by-auth *, #userPopup.by-auth *:before, #userPopup.by-auth *:after
{
    box-sizing: border-box;
}

/* ---------- heading ---------- */
#userPopup .by-auth-head
{
    display: flex;
    align-items: center;
    padding: 22px 60px 22px 28px;
    background: var(--by-primary-dark);
    background-image: linear-gradient(120deg, #3f1456 0%, #6d1d78 55%, #b0267f 100%);
    color: #fff;
}

#userPopup .by-auth-icon
{
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-right: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 20px;
    line-height: 46px;
    text-align: center;
    color: #fff;
}

#userPopup .by-auth-title
{
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--by-font);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    color: #fff;
}

#userPopup .by-auth-lead
{
    margin: 3px 0 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

/* close button, on the coloured heading */
#userPopup.by-auth .mfp-close
{
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    color: #fff;
    opacity: 1;
    cursor: pointer;
    transition: background-color .2s ease;
}

#userPopup.by-auth .mfp-close:hover
{
    background: rgba(255, 255, 255, 0.32);
}

#userPopup.by-auth .mfp-close:active
{
    top: 16px;
}

/* ---------- Login | Register ---------- */
#userPopup .by-auth-tabs
{
    display: none;
}

#userPopup .by-auth-body
{
    display: flex;
    padding: 0;
}

#userPopup .by-auth-col
{
    flex: 1 1 50%;
    min-width: 0;
    padding: 26px 28px 24px;
}

#userPopup .by-auth-col + .by-auth-col
{
    border-left: 1px solid var(--by-border-soft);
    background: #fcfaff;
}

#userPopup .by-auth-sub
{
    margin: 0;
    padding: 0;
    font-family: var(--by-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: var(--by-text);
}

#userPopup .by-auth-sub span
{
    display: inline-block;
    margin-left: 2px;
    padding: 1px 10px;
    border-radius: 999px;
    background: #e9f6ee;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    vertical-align: 2px;
    color: #1b7a43;
}

#userPopup .by-auth-note
{
    margin: 4px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--by-text-muted);
}

#userPopup .by-auth-field
{
    margin: 0 0 14px;
}

#userPopup .by-auth-field label
{
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--by-text-soft);
}

#userPopup .by-auth-field .form-control
{
    display: block;
    float: none;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--by-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-family: var(--by-font);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--by-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#userPopup .by-auth-field .form-control::placeholder
{
    color: var(--by-text-faint);
}

#userPopup .by-auth-field .form-control:focus
{
    border-color: var(--by-primary);
    box-shadow: var(--by-focus-ring);
    outline: none;
}

/* password with a show / hide button */
#userPopup .by-auth-pass
{
    position: relative;
}

#userPopup .by-auth-pass .form-control
{
    padding-right: 46px;
}

#userPopup .by-auth-eye
{
    position: absolute;
    right: 4px;
    top: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    font-size: 15px;
    color: var(--by-text-faint);
    cursor: pointer;
}

#userPopup .by-auth-eye:hover
{
    background: #f6eef5;
    color: var(--by-primary);
}

/* two boxes side by side */
#userPopup .by-auth-row
{
    display: flex;
}

#userPopup .by-auth-row .by-auth-field
{
    flex: 1 1 50%;
    min-width: 0;
}

#userPopup .by-auth-row .by-auth-field + .by-auth-field
{
    margin-left: 12px;
}

/* OTP box with its Send OTP button */
#userPopup .by-auth-otp
{
    display: flex;
    align-items: flex-end;
}

#userPopup .by-auth-otp .by-auth-field
{
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

#userPopup .by-auth-otp-send
{
    flex: 0 0 132px;
    margin-left: 12px;
}

#userPopup .by-auth-otp-send .by-auth-wait
{
    height: 46px;
    padding-top: 8px;
}

#userPopup .by-auth-hint
{
    margin: 7px 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--by-text-muted);
}

/* ---------- buttons ---------- */
#userPopup .by-auth-btn
{
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--by-primary);
    background-image: var(--by-gradient);
    box-shadow: 0 8px 18px rgba(142, 31, 122, 0.3);
    font-family: var(--by-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: none;
    color: #fff;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

#userPopup .by-auth-btn:hover
{
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#userPopup .by-auth-btn-line
{
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 10px;
    border: 1.5px solid var(--by-primary);
    border-radius: 12px;
    background: #fff;
    font-family: var(--by-font);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--by-primary);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

#userPopup .by-auth-btn-line:hover
{
    background: var(--by-primary);
    color: #fff;
}

#userPopup .by-auth-btn-line[disabled]
{
    border-color: var(--by-border);
    background: #f4f1f6;
    color: var(--by-text-faint);
    cursor: not-allowed;
}

#userPopup .by-auth-action
{
    margin: 0;
}

#userPopup .by-auth-wait
{
    width: auto !important;
    margin: 0 !important;
    text-align: center;
}

#userPopup .by-auth-wait img
{
    display: inline-block;
    max-height: 32px;
}

/* messages written by JS/Login.js */
#userPopup .by-auth-error
{
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    color: var(--by-danger);
}

#userPopup .by-auth-error:not(:empty), #userPopup .by-auth-error span:not(:empty)
{
    display: block;
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--by-danger-bg);
    color: var(--by-danger) !important;
}

#userPopup .by-auth-error:has(span:empty)
{
    display: none;
}

#userPopup .by-auth-error:has(span:not(:empty))
{
    margin: 0;
    padding: 0;
    background: none;
}

/* OR + Login with OTP */
#userPopup .by-auth-or
{
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--by-text-faint);
}

#userPopup .by-auth-or:before, #userPopup .by-auth-or:after
{
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--by-border-soft);
}

#userPopup .by-auth-or span
{
    margin: 0 12px;
}

#userPopup .by-auth-alt, #userPopup .by-auth-alt:focus
{
    display: block;
    height: 46px;
    border: 1.5px solid var(--by-border);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 43px;
    text-align: center;
    text-decoration: none;
    color: var(--by-primary);
    transition: border-color .2s ease, background-color .2s ease;
}

#userPopup .by-auth-alt:hover
{
    border-color: var(--by-primary);
    background: #faf4fa;
    text-decoration: none;
}

#userPopup .by-auth-alt .fa
{
    margin-right: 8px;
    font-size: 18px;
    vertical-align: -1px;
}

/* "New here? Register" - only needed where one part is shown at a time */
#userPopup .by-auth-switch
{
    display: none;
    margin: 16px 0 0;
    font-size: 13.5px;
    text-align: center;
    color: var(--by-text-muted);
}

#userPopup .by-auth-switch a
{
    font-weight: 700;
    text-decoration: none;
    color: var(--by-primary);
}

/* ---------- phone: Login and Register become two tabs ---------- */
@media (max-width: 767px)
{
    #userPopup.by-auth
    {
        max-width: 440px;
        margin: 10px auto;
        border-radius: 18px;
    }

    #userPopup .by-auth-head
    {
        padding: 16px 54px 16px 18px;
    }

    #userPopup .by-auth-icon
    {
        display: none;
    }

    #userPopup .by-auth-title
    {
        font-size: 17px;
    }

    #userPopup .by-auth-lead
    {
        font-size: 12.5px;
    }

    #userPopup.by-auth .mfp-close, #userPopup.by-auth .mfp-close:active
    {
        top: 12px;
        right: 12px;
    }

    #userPopup .by-auth-tabs
    {
        display: flex;
        margin: 14px 18px 0;
        padding: 4px;
        border-radius: 12px;
        background: #f4eef6;
    }

    #userPopup .by-auth-tab
    {
        flex: 1 1 50%;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: none;
        font-family: var(--by-font);
        font-size: 14px;
        font-weight: 600;
        color: var(--by-text-muted);
        cursor: pointer;
    }

    #userPopup .by-auth-tab.is-active
    {
        background: #fff;
        box-shadow: 0 2px 8px rgba(63, 20, 86, 0.14);
        color: var(--by-primary);
    }

    #userPopup .by-auth-body
    {
        display: block;
    }

    #userPopup .by-auth-col
    {
        display: none;
        padding: 18px 18px 20px;
    }

    #userPopup .by-auth-col.is-active
    {
        display: block;
    }

    #userPopup .by-auth-col + .by-auth-col
    {
        border-left: 0;
        background: #fff;
    }

    #userPopup .by-auth-sub
    {
        display: none;
    }

    #userPopup .by-auth-note
    {
        margin: 0 0 14px;
    }

    #userPopup .by-auth-switch
    {
        display: block;
    }

    /* 16px keeps a phone from zooming in when a box is tapped */
    #userPopup .by-auth-field .form-control
    {
        font-size: 16px;
    }

    #userPopup .by-auth-row
    {
        display: block;
    }

    #userPopup .by-auth-row .by-auth-field + .by-auth-field
    {
        margin-left: 0;
    }

    #userPopup .by-auth-otp-send
    {
        flex-basis: 118px;
        margin-left: 10px;
    }
}
