*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flex-container {
    display: flex;
}

.flex-item {
    min-width: 0;
}

:root {
    --clr-brand: #D96571;
    --clr-brand-dark: #4E1B2B;
    --clr-brand-mid: #C4758E;
    --clr-brand-light: #ECB4C6;
    --clr-deselected: #d5848a;
    --hamburger-width: 34px;
    --hamburger-height: 34px;
    --hamburger-gap: 4px;
    --bar-thickness: 4px;
    --bar-radius: 4px;
    --transition-fast: 130ms;
    --transition-slow: 500ms;
    --open-offset: calc((var(--bar-thickness) + var(--hamburger-gap)) * 1.5);
    background-color: #E8E8E8;
    min-width: 300px;
}

button:focus {
    outline: none;
}

/* html {
    height: 100%;
} */
/* HEADER */
.logo-gradient {
    background-color: var(--clr-brand);
}

/* NAVBAR */
.aiboetc-navbar {
    z-index: 999;
}

/* body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
} */
/* FOOTER */
/* footer {
    margin-top: auto;
} */
footer-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 11px;
}

.aiboetc-navbar {
    display: inline-flex;
    padding: 10px;
    margin: 0;

    /* explicit layout */
    align-items: center;

    /* vertically center children */
    justify-content: space-between;
    position: relative;
}

/* Replace <uniquifier> and <weight> with real values when using the helper class */
.comfortaa-uniquifier {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;

    /* choose 300..700 */
    font-style: normal;
}

/* Focus styles for keyboard users */
/* .hamburger:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 6px;
} */
/* Optional screen-reader only helper */
.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hamburger container sized by variables Reset default button styles so appearance is predictable */
.hamburger {
    display: inline-flex;

    /* explicit layout */
    align-items: center;

    /* vertically center children */
    justify-content: start;
    padding: 2px;

    /* remove UA/preset padding if you don't want it */
    margin-left: 40px;
    width: var(--hamburger-width);
    height: var(--hamburger-height);
    position: relative;
    background: transparent;
    border: 0;
    transition: color .18s ease;
}

/* change bar color when hovering anywhere on the button (bars OR MENU text) */
.hamburger:hover .bar {
    background: var(--clr-brand-dark);
}

/* change MENU text color on the same hover */
.hamburger:hover .menu-text {
    color: var(--clr-brand-dark);
}

.menu-text {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    color: #ffffff;
    font-size: 1.5em;
}

@media only screen and (max-width: 576px) 
{
    .hamburger:hover .menu-text,
    .menu-text {
        color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) 
{
    .hamburger .bar {
        transition: none !important;
    }
}

/* Bars sized and positioned using variables */
.hamburger .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--bar-thickness);
    background: #ffffff;
    border-radius: var(--bar-radius);
    transition: transform var(--transition-slow) cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity var(--transition-fast) linear,
                width var(--transition-slow) ease;
    transform-origin: center center;
    box-sizing: border-box;
}

/* position bars using calc; center the group inside hamburger */
.hamburger .bar1 {
    top: calc((var(--hamburger-height) - (4 * var(--bar-thickness) + 3 * var(--hamburger-gap))) / 2 + 0 * (var(--bar-thickness) + var(--hamburger-gap)));
}

.hamburger .bar2 {
    top: calc((var(--hamburger-height) - (4 * var(--bar-thickness) + 3 * var(--hamburger-gap))) / 2 + 1 * (var(--bar-thickness) + var(--hamburger-gap)));
}

.hamburger .bar3 {
    top: calc((var(--hamburger-height) - (4 * var(--bar-thickness) + 3 * var(--hamburger-gap))) / 2 + 2 * (var(--bar-thickness) + var(--hamburger-gap)));
}

.hamburger .bar4 {
    top: calc((var(--hamburger-height) - (4 * var(--bar-thickness) + 3 * var(--hamburger-gap))) / 2 + 3 * (var(--bar-thickness) + var(--hamburger-gap)));
}

/* OPEN state (use .hamburger.active since your script toggles .active) */
.hamburger.active > .bar2 {
    transform: translateY(calc(-1 * var(--open-offset)));
    transition-delay: 0ms;
}

.hamburger.active > .bar3 {
    transform: translateY(var(--open-offset));
    transition-delay: 0ms;
}

.hamburger.active > .bar2,
.hamburger.active > .bar3 {
    opacity: 0;
    transition-delay: 90ms;
}

.hamburger.active > .bar1 {
    transform: translateY(calc(var(--open-offset) / 1)) rotate(45deg);
    transition-delay: 250ms;
    width: 100%;
}

.hamburger.active > .bar4 {
    transform: translateY(calc(-1 * var(--open-offset) / 1)) rotate(-45deg);
    transition-delay: 250ms;
    width: 100%;
}

/* CLOSE state - ensure predictable delays (no .active) */
.hamburger > .bar1,
.hamburger > .bar4 {
    transition-delay: 0ms;
}

.hamburger > .bar2,
.hamburger > .bar3 {
    opacity: 1;
    transition-delay: 120ms;
    transform: none;
    transition-delay: 250ms;
}

/* aiboetc Logo */
.aiboetc-logo {
    background-color: white;
    border: 2px solid white;
    border-radius: 50%;
    transition: color .18s ease;

    &:hover {
        border: 2px solid var(--clr-brand-dark);
        border-radius: 50%;
    }
}

/* SHOPPING CART CSS */
.shopping-bag-button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.shopping-bag-container {
    margin-right: 40px;
    position: relative;

    /* establish containing block for absolute children */
    width: 34px;

    /* match or control the SVG size */
    height: 34px;
}

/* bag fills the stack area */
.shopping-bag {
    width: 100%;
    height: 100%;
    color: white;
}

.shopping-bag-button:hover .shopping-bag {
    color: var(--clr-brand-dark);
}

.shopping-bag {
    transition: color .18s ease;
}

/* counter sits centered over the bag */
.item-counter .item-counter-index {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
}

/* OFFCANVAS MAIN MENU */
.main-menu-container {
    display: block;
    justify-content: space-evenly;
}

.offcanvas.offcanvas-top {
    font-family: 'Comfortaa', sans-serif;
    color: white;
    background-color: var(--clr-brand);
    position: fixed;
    z-index: 2;
    padding-top: 84px;
    height: 100%;
    transition-duration: 500ms;
    border-bottom: none;
}

.offcanvas-top h6 {
    text-transform: uppercase;
    padding-top: 25px;
    padding-bottom: 5px;
    border-bottom: 2px solid white;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1em;
}

.offcanvas-top a {
    display: inline-flex;
    flex-direction: column;
    transition: font-weight 0.18s ease;
    text-decoration: none;
    margin-top: 5px;
    margin-bottom: 10px;
    font: Comfortaa;
    color: white;
    font-weight: 300;
    font-size: 1em;

    &:after {
        content: attr(data-text);
        visibility: hidden;
        height: 0;
        user-select: none;
        pointer-events: none;
        overflow: hidden;
        font: Comfortaa;
        color: white;
        font-weight: 700;
        font-size: 1em;
    }

    /* &:active {
        font-weight: 700;
        color: var(--clr-brand-light);
    } */
}

.main-menu-active {
    font-weight: 700;
    color: var(--clr-brand-light);
}

.offcanvas-top a:hover {
    font-family: 'Comfortaa', sans-serif;
    color: var(--clr-brand-dark);
    font-weight: 700;
}

.offcanvas-top .tba {
    pointer-events: none;
    font: Comfortaa;
    color: var(--clr-deselected);
    font-weight: 300;
}

.youtube-logo {
    color: white;

    &:hover {
        color: var(--clr-brand-dark);
    }
}

/* OFFCANVAS CHECKOUT */
.offcanvas.offcanvas-end {
    font-family: 'Comfortaa', sans-serif;
    color: white;
    font-weight: 700;
    background-color: var(--clr-brand);
    position: fixed;
    z-index: 2;
    height: 100%;
    padding-top: 92px;
    top: 0px;
    left: auto;
    min-width: 322px;
    width: 550px;
    transition-duration: 500ms;
}