/* Home page (Default.aspx). The page sits inside DWCMaster.master, and the banner, product
   cards, tab panels and popup are HTML built in Default.aspx.cs, so those are styled here
   through the class names the code-behind already emits (.productview, .block, .heading,
   .price, .hshophhh, .btn3 ...). Shared colours and buttons come from css/beyoung-theme.css */

.home-page
{
    font-family: var(--by-font);
    color: var(--by-text);
}

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

.home-section
{
    padding: 34px 0 6px;
}

/* ---------- Section headings ---------- */
.home-head
{
    margin: 0 0 24px;
    padding: 0 16px;
    text-align: center;
}

.home-title
{
    margin: 0;
    padding: 0;
    font-family: var(--by-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--by-text);
}

.home-title strong
{
    font-weight: 700;
    color: var(--by-primary);
}

.home-title:after
{
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 3px;
    background: var(--by-gradient);
}

.home-sub
{
    margin: 12px 0 0;
    font-family: var(--by-font);
    font-size: 15px;
    color: var(--by-text-muted);
}

.productview + .home-head
{
    margin-top: 44px;
}

/* ---------- Product cards (markup from code-behind) ---------- */
.home-page .productview
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 22px;
    max-width: 1172px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-page .block
{
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 14px 14px 16px;
    border: 1.5px solid #c9a3cc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(63, 20, 86, 0.05);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-page .block:hover
{
    transform: translateY(-3px);
    border-color: var(--by-primary);
    box-shadow: 0 14px 30px rgba(63, 20, 86, 0.18);
}

.home-page .block .middle
{
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--by-border-soft);
}

.home-page .block .middle:hover
{
    opacity: 1;
}

.home-page .block .middle img
{
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform .25s ease;
}

.home-page .block:hover .middle img
{
    transform: scale(1.05);
}

.home-page .block .bottom
{
    flex: 1 1 auto;
    padding: 0 4px;
    text-align: left;
}

.home-page .block .bottom a, .home-page .block .bottom a:hover
{
    text-decoration: none;
}

.home-page .block .heading
{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.2em;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--by-text);
}

.home-page .block a:hover .heading
{
    color: var(--by-primary);
}

.home-page .block .price
{
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--by-primary);
}

/* "Add to Cart": the button carries inline colours from the code-behind, hence !important */
.home-page .block .btn
{
    height: 42px;
    margin-top: 14px !important;
    padding: 0 10px;
    border: 0;
    border-radius: var(--by-radius);
    background: var(--by-primary);
    background: var(--by-gradient);
    box-shadow: 0 6px 14px rgba(142, 31, 122, 0.22);
    font-family: var(--by-font);
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    transition: box-shadow .15s ease, filter .15s ease;
}

.home-page .block .btn i
{
    padding-right: 6px !important;
    font-size: 18px !important;
    color: inherit !important;
}

.home-page .block .btn:hover, .home-page .block .btn:focus
{
    box-shadow: 0 10px 20px rgba(142, 31, 122, 0.32);
    filter: brightness(1.08);
    color: #fff !important;
    outline: none;
}

.home-page .block .btn[disabled]
{
    opacity: .6;
}

/* wait / done states set by addToCart() in Default.aspx, shown on the button itself */
.home-page .block .btn.is-loading,
.home-page .block .btn.is-loading:hover
{
    background: #f6eef5;
    box-shadow: none;
    filter: none;
    color: var(--by-primary) !important;
    opacity: 1;
    cursor: default;
}

.home-spinner
{
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(142, 31, 122, 0.25);
    border-top-color: var(--by-primary);
    border-radius: 50%;
    vertical-align: -3px;
    animation: home-spin .7s linear infinite;
}

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

.home-page .block .btn.is-added,
.home-page .block .btn.is-added:hover
{
    background: #1e8e4a;
    box-shadow: none;
    filter: none;
    color: #fff !important;
    opacity: 1;
    cursor: default;
}

/* out of stock stays on the button; other failures show briefly and the button resets */
.home-page .block .btn.is-out,
.home-page .block .btn.is-out:hover,
.home-page .block .btn.is-failed,
.home-page .block .btn.is-failed:hover
{
    background: #fdecea;
    border: 1px solid #f3b9b2;
    box-shadow: none;
    filter: none;
    color: #b3321c !important;
    opacity: 1;
    cursor: not-allowed;
}

/* ---------- Mission banner ---------- */
.home-mnd
{
    display: flex;
    align-items: center;
    padding: 30px 40px;
    border-radius: var(--by-radius-lg);
    background: #5c1a6e;
    background: linear-gradient(120deg, rgba(63, 20, 86, 0.92) 0%, rgba(142, 31, 122, 0.82) 100%),
                url(../../Content/images/Banner/mndbanner.jpg) center / cover no-repeat;
    box-shadow: var(--by-shadow);
}

.home-mnd-logo
{
    flex: 0 0 170px;
    width: 170px;
    height: 170px;
    padding: 12px;
    border-radius: 50%;
    background: #fff;
}

.home-mnd-logo img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-mnd-body
{
    flex: 1;
    min-width: 0;
    margin-left: 40px;
}

.home-mnd-quote
{
    margin: 0 0 20px;
    font-family: var(--by-font);
    font-size: 22px;
    line-height: 1.5;
    color: #fff;
}

/* white button for dark backgrounds */
.home-btn-light, a.home-btn-light:hover, a.home-btn-light:focus
{
    background: #fff;
    color: var(--by-primary-dark);
    box-shadow: 0 8px 20px rgba(31, 8, 43, 0.25);
}

a.home-btn-light:hover
{
    transform: translateY(-1px);
}

/* ---------- Featured product ---------- */
.home-featured
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 430px;
    border-radius: var(--by-radius-lg);
    overflow: hidden;
    background: #d9d9d9 url(../../Content/images/Banner/Shimi_Banner.jpg) left center / cover no-repeat;
    box-shadow: var(--by-shadow);
}

.home-featured-body
{
    width: 42%;
    margin: 30px 40px 30px 0;
    padding: 30px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.home-featured-name
{
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--by-text);
}

.home-featured-price
{
    margin: 8px 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--by-primary);
}

.home-featured-body p
{
    margin: 0 0 20px;
    font-family: var(--by-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--by-text-muted);
}

/* ---------- Category cards ---------- */
.home-cats
{
    display: flex;
    margin: 0 -11px;
}

.home-cat
{
    flex: 1 1 0;
    display: flex;
    min-width: 0;
    min-height: 380px;
    margin: 0 11px;
    border-radius: var(--by-radius-lg);
    overflow: hidden;
    background-color: #3f1456;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 10px 26px rgba(63, 20, 86, 0.16);
}

.home-cat-body
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px 24px;
    background: linear-gradient(180deg, rgba(31, 8, 43, 0.5) 0%, rgba(31, 8, 43, 0.72) 100%);
    text-align: center;
    transition: background-color .2s ease;
}

.home-cat:hover .home-cat-body
{
    background-color: rgba(63, 20, 86, 0.25);
}

.home-cat h3
{
    margin: 0 0 12px;
    font-family: var(--by-font);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.home-cat p
{
    margin: 0 0 18px;
    font-family: var(--by-font);
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.home-cat p.home-cat-note
{
    margin: 18px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- "Choose your food pill" tabs ---------- */
/* "#tabs" beats the old gradient set on that id in the main bundle */
#tabs.home-tabs
{
    margin-top: 40px;
    padding: 44px 0 50px;
    background: #f3ecf5;
    background: radial-gradient(circle at 88% 8%, #f7dcec 0%, rgba(247, 220, 236, 0) 40%),
                radial-gradient(circle at 6% 96%, #e3d3ef 0%, rgba(227, 211, 239, 0) 45%),
                #f5f0f8;
}

.home-tabs .nav-tabs
{
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(63, 20, 86, 0.06);
}

.home-tabs .nav-tabs:before, .home-tabs .nav-tabs:after
{
    display: none;
}

.home-tabs .nav-tabs > li
{
    flex: 1 1 0;
    float: none;
    min-width: 0;
    margin: 0;
}

/* a[data-toggle] = the tab itself; on small screens a script adds extra prev / next
   links (a.tab-control) inside each <li>, which are styled further down */
.home-tabs .nav-tabs > li > a[data-toggle],
.home-tabs .nav-tabs > li > a[data-toggle]:hover,
.home-tabs .nav-tabs > li > a[data-toggle]:focus
{
    margin: 0;
    padding: 12px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: var(--by-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    text-align: center;
    color: var(--by-text-muted);
}

.home-tabs .nav-tabs > li > a[data-toggle]:hover
{
    background: #f6eef5;
    color: var(--by-primary);
}

.home-tabs .nav-tabs > li.active > a[data-toggle],
.home-tabs .nav-tabs > li.active > a[data-toggle]:hover,
.home-tabs .nav-tabs > li.active > a[data-toggle]:focus
{
    background: var(--by-primary);
    background: var(--by-gradient);
    color: #fff;
}

/* small screens: one tab at a time with round prev / next buttons either side */
.home-tabs .tabbable.responsive .nav-tabs > li
{
    position: relative;
    border: 0;
    background: transparent;
}

.home-tabs .tabbable.responsive .nav-tabs > li > a.tab-control,
.home-tabs .tabbable.responsive .nav-tabs > li > a.tab-control:hover
{
    position: absolute;
    left: 2px;
    top: 50%;
    float: none;
    width: 36px;
    height: 36px;
    margin: -18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--by-primary-dark);
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.home-tabs .tabbable.responsive .nav-tabs > li > a.tab-control.right
{
    left: auto;
    right: 2px;
}

.home-tabs .nav-tabs > li > a.tab-control ~ a[data-toggle],
.home-tabs .nav-tabs > li > a.tab-control ~ a[data-toggle]:hover
{
    display: block;
    float: none;
    margin: 0 46px;
}

.home-tabs .tab-content
{
    margin-top: 16px;
    padding: 20px 14px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(63, 20, 86, 0.06);
}

.home-tabs .tab-pane:after
{
    content: "";
    display: table;
    clear: both;
}

/* group heading inside a tab panel */
.home-tabs .hshophhh
{
    margin: 4px 0 6px;
    padding: 0 5px 8px;
    border-bottom: 1px solid var(--by-border-soft);
    font-family: var(--by-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    text-align: left;
    color: var(--by-primary-dark);
}

.home-tabs .hshophhh a, .home-tabs .hshophhh a:hover
{
    color: var(--by-primary-dark) !important;
    text-decoration: none;
}

.home-tabs .fm2
{
    padding: 2px 5px;
}

.home-tabs .btn3, .home-tabs .btn3:hover
{
    display: inline-block;
    padding: 5px 0;
    font-family: var(--by-font);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .2px;
    color: var(--by-text-soft);
    text-decoration: none;
}

.home-tabs .btn3:hover
{
    color: var(--by-primary);
}

.home-tabs .fm2 br
{
    display: none;
}

/* ---------- Quick links: side dock on desktop, buttons on mobile ---------- */
.socialmenu
{
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 99;
    width: 46px;
    margin-top: -100px;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    white-space: nowrap;
    background: var(--by-primary-dark);
    box-shadow: -4px 6px 18px rgba(31, 8, 43, 0.25);
    transition: width .3s ease;
}

.socialmenu:hover
{
    width: 180px;
}

.itemsocial
{
    height: 50px;
    overflow: hidden;
    font-family: var(--by-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 50px;
    color: #fff;
}

.itemsocial:hover
{
    background-color: var(--by-primary);
}

.itemsocial a, .itemsocial a:hover
{
    display: block;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.socialmenu .fa
{
    width: 20px;
    margin: 0 13px;
    text-align: center;
    color: #fff;
}

.home-quick
{
    display: flex;
    flex-wrap: wrap;
    margin: 24px -6px 10px;
}

.home-quick .by-btn
{
    flex: 1 1 40%;
    margin: 6px;
    padding: 0 10px;
    font-size: 13px;
}

@media only screen and (max-width: 792px)
{
    .socialdesk
    {
        display: none;
    }
}

@media only screen and (min-width: 792px)
{
    .socialmob
    {
        display: none;
    }
}

/* ---------- Carried over from the old inline styles (header icons, popup) ---------- */
i.fa
{
    font-size: 17px;
    vertical-align: middle !important;
}

.modal-body
{
    width: 100%;
    padding: 5px !important;
}

.pclose
{
    color: #333 !important;
    padding: 2px 10px;
    top: 0px;
    right: 0px;
    display: block;
    position: absolute;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px)
{
    .home-page .productview
    {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 16px;
    }

    .home-featured-body
    {
        width: 50%;
        margin-right: 24px;
    }

    .home-cats
    {
        display: block;
        margin: 0;
    }

    .home-cat
    {
        min-height: 0;
        margin: 0 0 18px;
    }

    .home-tabs .nav-tabs > li
    {
        flex: 1 1 50%;
    }
}

@media (max-width: 767px)
{
    .home-section
    {
        padding-top: 26px;
    }

    .home-title
    {
        font-size: 24px;
    }

    .home-page .productview
    {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
        padding: 0 12px;
    }

    .home-page .block
    {
        padding: 12px;
    }

    .home-page .block .middle img
    {
        height: 135px;
    }

    .home-page .block .heading
    {
        font-size: 13px;
    }

    .home-page .block .price
    {
        font-size: 15px;
    }

    .home-page .block .btn
    {
        font-size: 13px;
    }

    .home-mnd
    {
        display: block;
        padding: 26px 20px;
        text-align: center;
    }

    .home-mnd-logo
    {
        width: 130px;
        height: 130px;
        margin: 0 auto 18px;
    }

    .home-mnd-body
    {
        margin-left: 0;
    }

    .home-mnd-quote
    {
        font-size: 17px;
    }

    /* photo on top, text panel below it */
    .home-featured
    {
        display: block;
        min-height: 0;
        padding-top: 42.86%;
        background-position: left top;
        background-size: 100% auto;
        background-color: #fff;
    }

    .home-featured-body
    {
        width: auto;
        margin: 0;
        padding: 22px 20px 24px;
        border-radius: 0;
        background: #fff;
        text-align: center;
    }

    .home-featured-name
    {
        font-size: 22px;
    }

    #tabs.home-tabs
    {
        padding: 30px 0 34px;
    }

    .home-tabs .hshophhh
    {
        margin-top: 12px;
    }
}
