.main-wrapper{
    --highlight-color: #e1251b;

    position: relative;
    transform: translateZ(0);
    width: 100%;
    height: 100vh;
    overflow: hidden;

    font-family: 'Lato', sans-serif;
    color: #231f20;
}
#virtualTool{
    position: relative;

    opacity: 0;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 45px;

    /* Scale the active view to fit (contain) within the iframe/viewport so it is
       never clipped, whatever its natural height. --fit-scale is set by JS. */
    transform-origin: top center;
    transform: scale(var(--fit-scale, 1));
    transition: transform .35s ease;
}
#virtualTool.loaded{
    animation-name: fade-in;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
	animation-delay: 0.1s;
}

.sections-container{
    width: 100%;
    flex-shrink: 0; 
}

.sections-scroller{
    width: 100%;
    white-space: nowrap;
    overflow:visible;
    transition: 1.4s;
}

/** last minute add, removed js 'scrollTo' and replaced with this to preserve the y positioning w/out more js hacks **/
html[data-active-section="store"] .sections-scroller{
    transform: translateX(0%);
    transition: 0s 1.4s;
}
html[data-active-section="meats"] .sections-scroller{
    transform: translateX(0%);
}
html[data-active-section="frozen"] .sections-scroller{
    transform: translateX(-100%);
}
html[data-active-section="bakery"] .sections-scroller{
    transform: translateX(-200%);
}
html[data-active-section="sauces"] .sections-scroller{
    transform: translateX(-300%);
}

.section-item{
    position: relative;
    flex-shrink: 0;
    
    width: 100%;
    
    background: white;

    display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-items: center;
	align-content: center;
	justify-content: center;

    animation-name: fade-out;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
}

/** store front item **/
#section-store{
    position: absolute;
    left: 0;
    top: 0;

    animation-name: zoom-out;
}

/* active section */
.section-item--active{
   animation-name:fade-in;
}
#section-store.section-item--active:not(.transitioning){
    animation-name:zoom-in;
}
#section-store.section-item--active.transitioning{
    animation-name:zoom-out;
}

/* On the store view the cart/nav are hidden and the storefront art is shorter
   than the section art, so the storefront would otherwise float inside that
   taller reserved space. Let the storefront define the height here and pull the
   now-hidden section scroller and footers out of flow so no empty space is left
   below it. These revert automatically for the section views. */
html[data-active-section="store"] #section-store{
    position: relative;
}
html[data-active-section="store"] .sections-scroller{
    position: absolute;
    top: 0;
    left: 0;
}
html[data-active-section="store"] .section-footer-container{
    display: none;
}


/** buttons **/
.btn-section{
   opacity: 0;

   transition: all 1.4s;
}
#section-store .btn-section{
   transition: none;
}
.section-item--active .btn-section{
    opacity: 1;
}
#section-store.section-item--active .btn-section{
    opacity: 0;
    animation-name: fade-in;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
}

.btn-section path{
    cursor: pointer;
    color: #27292e;

    transition: color .5s;
}
.btn-section:hover path,
.btn-section:focus path{
    color: var(--highlight-color);
    
}
.btn-text{
    fill: white;
}


/*==========================================================
    popups
==========================================================*/
.popup-container{
    visibility: hidden;
    opacity: 0;

    display: flex;

    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;

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

    width: 100%;
    height: 100%;
    
    white-space: normal;
    background: rgba(0,0,0,.65);
    padding: 30px;

    will-change: visible, opacity;
    transition: visibility 0s 0.5s, opacity 0.4s 0.3s;
}
.popup-close-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index:1;
}
.popup-item{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 250px;

    padding: 0 28px 40px;
    background: white;
    border: 3px solid #231f20;
}
@media screen and (min-width: 768px) {
    .popup-item{
        max-width: 300px;
    }
}
@media screen and (min-width: 1100px) {
    .popup-item{
        max-width: 335px;
    }
}

.popup__close-btn{
    position: absolute;
    top: 20px;
    right: 20px;

    width: 18px;
    height: 18px;

    text-transform: -99999999px;
    overflow: hidden;
    background: #231f20;

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

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

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-image: url('./images/close.svg');
    mask-image: url('./images/close.svg');
}

.popup__item-image-container{
    width: 100px;
    height: 100px;
    margin: -50px auto 15px;

    background: black;

    border-radius: 50%;
}
@media screen and (min-width: 768px) {
    .popup__item-image-container{
        width: 150px;
        height: 150px;
        margin-top: -75px;
    }
}
@media screen and (min-width: 1100px) {
    .popup__item-image-container{
        width: 175px;
        height: 175px;
        margin-top: -87px;
    }
}

.popup__item-title{
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}
.popup__item-intro{
    margin-top: 10px;
    font-weight: 400;
    font-size: .95rem;
    line-height: 1.25;
}
@media screen and (min-width: 768px) {
    .popup__item-title{
        font-size: 1.65rem;
    }
    .popup__item-intro{
        font-size: 1rem;
    }
}
@media screen and (min-width: 1100px) {
    .popup__item-title{
        font-size: 1.75rem; /* 28px */
    }
    .popup__item-intro{
        font-size: 1.125rem; /* 18px; */
    }
}


.popup__item-links{
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    max-width: 200px;
    margin-top: 25px;
}
@media screen and (min-width: 768px) {
    .popup__item-links{
        gap: 8px;
    }
}

.popup__item-link{
    display: block;
    padding: 8px 15px;
    border-radius: 8px;

    background: #231f20;
    color: white;

    font-size: .70rem; /* 12px; */
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;

    transition: background .5s, color .5s;
}
@media screen and (min-width: 768px) {
    .popup__item-link{
        padding: 11px 20px;
        font-size: .75rem; /* 12px; */
        border-radius: 10px;
    }
}
.popup__item-link--close{
    width: 100%;
    border: 2px solid #231f20;
    background: white;
    color: #231f20;
}


.popup__item-link:hover,
.popup__item-link:focus{
    background: var(--highlight-color);
    color: white;
    font-weight: 700;
}

.highlight{
    font-weight: 700;
    color: var(--highlight-color);
    text-decoration: none;

    transition: .5s;
}
a.highlight:hover{
    color: #231f20;
}

/* active popup */
.popup-acitve.popup-container{
    visibility:visible;
	opacity: 1;

	transition: opacity 0.4s;
}



/*==========================================================
    footer
==========================================================*/
.section-footer-container{
    opacity: 0;
    visibility: hidden;

    animation-name: fade-out;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
}
.section-footer-container--active{
    animation-name: fade-in;
}
.section-footer-nav-container{
    animation-name: display-out;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
	animation-delay: 0.1s;
}
.section-footer-nav-container--active{
    animation-name: display-in;
    animation-delay: 0s;
}

/*==========================================================
    cart
==========================================================*/
.section-cart-container{
    position: relative;
    height: 40px;

    margin-top: 25px;
    margin-bottom: 40px;

    background-image: url('./images/floor.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
@media screen and (min-width: 580px) {
    .section-cart-container{
        height: clamp(40px, 14vw, 90px);
    }
}
@media screen and (min-width: 768px) {
    .section-cart-container{
        height: clamp(90px, 18vw, 170px);

        margin-top: 35px;
        margin-bottom: 70px;
    }
}
@media screen and (min-width: 1100px) {
    .section-cart-container{
        height: 180px;

        margin-top: 50px;
    }
}


.section-cart-container-int{
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 100%;
    max-width: clamp(180px, 42vw, 535px);

    margin-left: -50px;
    opacity: 0;

    animation-name: slide-out;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
}
@media screen and (min-width: 768px) {
    .section-cart-container-int{
        max-width: clamp(200px, 50vw, 535px);
    }
}
@media screen and (min-width: 1100px) {
    .section-cart-container-int{
        /* max-width: 535px; */
        max-width: 515px;
    }
}
.section-footer-container--active .section-cart-container-int{
    animation-name: slide-in;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
	animation-delay: 0.25s;
}

.section-cart-cart svg{
    fill: #FFF;
}

/* cart buttons */
.section-cart-btns{
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;

    opacity: 0;
    animation-name: fade-out;
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
    animation-delay: .75s;
}

.section-footer-container--active .section-cart-btns{
    animation-name: fade-in;
}
.section-cart-btn{
    position: absolute;
    width: 40px;
    height: 40px;
    overflow: hidden;

    background: #000;
    border-radius: 50%;
    text-indent: -9999999999px;

    transition: all .5s;
}
.section-cart-btn:hover{
    background: var(--highlight-color);
}

@media screen and (min-width: 580px) {
    .section-cart-btn{
        width: 50px;
        height: 50px;
    }
}
@media screen and (min-width: 768px) {
    .section-cart-btn{
        width: 75px;
        height: 75px;
    }
}
@media screen and (min-width: 1100px) {
    .section-cart-btn{
        width: 90px;
        height: 90px;
    }
}

.section-cart-btn::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    width: 35px;
    height: 50px;
    margin: auto;
    background: white;

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

    -webkit-mask-size: 40% 40%;
    mask-size: 40% 40%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-image: url('./images/arrow.svg');
    mask-image: url('./images/arrow.svg');
}
@media screen and (min-width: 580px) {
    .section-cart-btn::before{
        -webkit-mask-size: 60% 60%;
        mask-size: 60% 60%;
    }
}
@media screen and (min-width: 768px) {
    .section-cart-btn::before{
        -webkit-mask-size: 75% 75%;
        mask-size: 75% 75%;
    }
}
@media screen and (min-width: 1100px) {
    .section-cart-btn::before{
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

.section-cart-btn:disabled{
    opacity: 0;
    cursor: initial;
}
.section-cart-btn--prev{
    left: 20px;
}
.section-cart-btn--prev::before{
    transform: scaleX(-1);
}
.section-cart-btn--next{
    right: -20px;
}
@media screen and (min-width: 768px) {
    .section-cart-btn--prev{
        left: 50px;
    }
    .section-cart-btn--next{
        right: -50px;
    }
}

/*==========================================================
    nav/buttons
==========================================================*/
.sections-nav-container{
    width: 100%;
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    padding: 0 30px;
}
@media screen and (min-width: 768px) {
    .sections-nav-container{
        gap: 30px;
    }
}
.section-nav-items{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
@media screen and (min-width: 768px) {
    .section-nav-items{
        gap: 15px;
    }
}

.section-nav-btn{
    min-width: 155px;
    padding: 8px 15px;

    text-transform: uppercase;
    border-radius: 8px;
    border: 2px solid #231f20;
    background: #231f20;
    color: #FFF;

    font-size: .70rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;

    transition: .5s;
}
.section-nav-btn:hover{
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    color: #FFF;
}
.section-nav-btn--back{
    color: #231f20;
    background: #FFF;
    border-radius: 0 !important;
    border: none;
    border-bottom: 2px solid #231f20;
}
.section-nav-btn--back:hover{
    background: #FFF;
    color: #231f20;
}
@media screen and (min-width: 768px) {
    .section-nav-btn{
        padding: 11px 20px;
        font-size: .75rem; /* 12px; */
        border-radius: 10px;
    }
}

.section-nav-btn--active{
    background: #FFF;
    color: #231f20;
}



/*==========================================================
    animations
==========================================================*/
/* Delays */
.delay--1 {
	animation-delay: 0.5s;
    transition-delay: .5s;
}
.delay--2 {
	animation-delay: 0.75s;
    transition-delay: .75s;
}
.delay--3 {
	animation-delay: 1s;
    transition-delay: 1s;
}
.delay--4 {
	animation-delay: 1.25s;
    transition-delay: 1.25s;
}
.delay--5 {
	animation-delay: 1.50s;
    transition-delay: 1.5s;
}
.delay--6 {
	animation-delay: 1.75s;
    transition-delay: 1.75s;
}
.delay--7 {
	animation-delay: 2s;
    transition-delay: 2s;
}
.delay--8 {
	animation-delay: 2.25s;
    transition-delay: 2.25s;
}
.delay--9 {
	animation-delay: 2.5s;
    transition-delay: 2.5s;
}
.delay--10 {
	animation-delay: 2.75s;
    transition-delay: 2.75s;
}
.delay--11 {
	animation-delay: 3s;
    transition-delay: 3s;
}
.delay--12 {
	animation-delay: 3.25s;
    transition-delay: 3.25s;
}
.delay--13 {
	animation-delay: 3.5s;
    transition-delay: 3.5s;
}
.delay--14 {
	animation-delay: 3.75s;
    transition-delay: 3.75s;
}

@keyframes fade-in {
	0% { visibility: hidden; opacity: 0; z-index: -1; }
	100% { visibility: visible; opacity: 1; z-index: 2; }
}
@keyframes fade-out {
	0% { visibility: visible; opacity: 1; z-index: 2;}
	100% { visibility: hidden; opacity: 0; z-index: -1;}
}

@keyframes fade-in-2 {
	0% { opacity: .25; z-index: -1; }
	100% { opacity: 1; z-index: 2; }
}
@keyframes fade-out-2 {
	0% { opacity: 1; z-index: 2;}
	100% { opacity: .25; z-index: -1;}
}


@keyframes zoom-in {
	0% {
        z-index: -1;
        opacity: 0;
        transform: scale(1);
    }
	100% {
        z-index: 2;
        opacity: 1;
        transform: scale(1);
        transform-origin: center;
    }
}
@keyframes zoom-out {
	0% {
        z-index: 2;
        opacity: 1;
        transform: scale(1);
    }
	100% {
        z-index: -1;
        opacity: 0;
        transform: scale(1.1);
        transform-origin: center;
    }
}


@keyframes slide-in {
	0% { 
        opacity: 0; 
        margin-left: -50px;
    }
	100% { 
        opacity: 1; 
        margin-left: 0;
    }
}
@keyframes slide-out {
	0% { 
        opacity: 1; 
        margin-left: 0;
    }
	100% { 
        opacity: 0; 
        margin-left: 0;
    }
}