/* Cart icon and mini-cart popup, for the pages that don't load woocommerce.css.
   Copied from assets/css/woocommerce.css — keep the two in sync. */
:root {
    --woo-black: #141325;
    --woo-blue: #7069F4;
    --woo-font: "GalanoGrotesque", sans-serif;
    --transition: all 0.35s;
}
.header-woo__cart {
    display: flex;
    justify-content: end;
    margin-left: 24px;
}
.header-woo__cart a {
    font-family: var(--woo-font);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF;
}
.header-woo__cart a.cart-counter--icon-only {
    gap: 4px;
}
.header-woo__cart a span {
    background-color: #FFFFFF;
    color: #141325;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px 6px;
    width: 20px;
    height: 20px;
    border-radius: 97px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
}
.header-woo__cart > div {
    margin-left: 14px !important;
}
/* Popup cart */
.popup-cart {
    z-index: 99;
    position: fixed;
    width: 100%;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    visibility: hidden;
    opacity: 0;
    background-color: #141325CC;
    transition: var(--transition);
    cursor: pointer;
}
.popup-cart.open {
    left: 0;
    visibility: visible;
    opacity: 1;
}
.popup-cart.open .popup-cart__wrapper {
    right: 0;
    visibility: visible;
    opacity: 1;
}
.popup-cart__wrapper {
    position: relative;
    margin-left: auto;
    max-width: 674px;
    padding: 20px;
    background-color: #F7F7FF;
    height: 100%;
    right: -20%;
    transition: all 0.5s;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    border-bottom-left-radius: 24px;
    display: flex;
    flex-direction: column;
}
/* Lets the total and the checkout button sit at the bottom of the panel
   instead of floating right under the product list. */
.popup-cart__cart {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.popup-cart__wrapper::-webkit-scrollbar {
    height: 3px;
    width: 3px;
}
.popup-cart__wrapper::-webkit-scrollbar-track {
    border-radius: 0px;
    background-color: #fff;
}
.popup-cart__wrapper::-webkit-scrollbar-track:hover {
    background-color: #fff;
}
.popup-cart__wrapper::-webkit-scrollbar-track:active {
    background-color: #fff;
}
.popup-cart__wrapper::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background-color: #7069F4;
}
.popup-cart__wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #7069F4;
}
.popup-cart__wrapper::-webkit-scrollbar-thumb:active {
    background-color: #7069F4;
}
.popup-cart__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #D8D8F7;
    margin-bottom: 16px;
}
.popup-cart__title {
    font-family: 'Halogen';
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--woo-black);
}
.popup-cart__close {
    line-height: 0;
    cursor: pointer;
}
.popup-cart__close svg {
    pointer-events: none;
}
.popup-cart__range {
    padding-bottom: 16px;
    border-bottom: 1px solid #D8D8F7;
    margin-bottom: 16px;
}
.popup-cart__range--title {
    font-family: var(--woo-font);
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--woo-black);
    margin-bottom: 8px;
    text-align: center;
}
.popup-cart__range--title span {
    color: #00A050;
}
.popup-cart__range--bar {
    height: 6px;
    background: #FFB12933;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.popup-cart__range--fill {
    height: 100%;
    background: #FFB129;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    border-radius: 50px;
}
.woocommerce-mini-cart {
    border-radius: 24px;
    padding: 8px 24px;
    background-color: #fff;
    overflow: hidden;
}
.woocommerce-mini-cart-item {
    position: relative;
    padding: 16px 0;
    display: flex;
    gap: 16px;
}
.woocommerce-mini-cart-item:not(:last-child) {
    border-bottom: 1px solid #D8D8F7;
}
.woocommerce-mini-cart-item__image {
    width: 95px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}
.woocommerce-mini-cart-item__image a {
    display: block;
    height: 100%;
}
.woocommerce-mini-cart-item__image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Fills the width next to the thumbnail so the line price can sit
   on the right edge of the card instead of hugging the quantity control. */
.woocommerce-mini-cart-item__right {
    flex: 1;
    min-width: 0;
}
.woocommerce-mini-cart-item__title {
    margin-bottom: 16px;
}
.woocommerce-mini-cart-item__title a {
    font-weight: 900;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #141325;
    text-decoration: none;
    transition: var(--transition);
}
.woocommerce-mini-cart-item__title a:hover {
    color: var(--woo-blue);
}
.woocommerce-mini-cart-item__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.woocommerce-mini-cart-item__qty .price {
    display: flex;
    flex-direction: column-reverse;
    gap: 3px;
    font-family: var(--woo-font);
    font-weight: 850;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #141325;
}
.woocommerce-mini-cart-item__qty .price del {
    font-size: 14px;
    color: #6E6E6E;
    font-weight: 400;
    font-style: normal;
}
/* Sale price sits in <ins>, so it needs the same size as the regular one */
.woocommerce-mini-cart-item__qty .price ins {
    font-family: var(--woo-font);
    font-style: italic;
    font-weight: 850;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #141325;
    text-decoration: none;
}
.woocommerce-mini-cart-info {
    margin-top: 16px;
    border-top: 1px solid #D8D8F7;
    border-bottom: 1px solid #D8D8F7;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-column-gap: 16px;
    grid-row-gap: 8px;
}
.woocommerce-mini-cart-info p {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.02em;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}
.woocommerce-mini-cart-others {
    margin-top: 60px;
}
.woocommerce-mini-cart-others h2 {
    font-family: 'Halogen';
    font-weight: 900;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}
.woocommerce-mini-cart-others__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.woocommerce-mini-cart-others__top > div {
    display: flex;
    gap: 8px;
}
.woocommerce-mini-cart-others__wrapper {
    padding: 16px;
    background: #FFFFFF;
    border-radius: 16px;
    display: grid;
    grid-gap: 8px;
    grid-template-columns: auto 1fr;
}
.woocommerce-mini-cart-others__title {
    font-weight: 900;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: var(--transition);
    text-decoration: none;
}
.woocommerce-mini-cart-others__title:hover {
    color: #00A050;
}
.woocommerce-mini-cart-others__excerpt {
    font-size: 14px;
    line-height: 120%;
}
.woocommerce-mini-cart-others__image {
    overflow: hidden;
    border-radius: 16px;
    width: 99px;
    height: 99px;
    line-height: 0;
}
.woocommerce-mini-cart-others__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.woocommerce-mini-cart-others .price {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    margin: 0;
    font-weight: 850;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #141325;
}
.woocommerce-mini-cart-others .price del {
    color: #6E6E6E;
    font-size: 14px;
    font-weight: 400;
}
.woocommerce-mini-cart-others .price ins {
    font-style: italic;
    text-decoration: none;
}
.woocommerce-mini-cart-others a.button svg,
.woocommerce-mini-cart-others__bottom a.button.added {
    display: none;
}
.woocommerce-mini-cart__buttons a.button,
.woocommerce-mini-cart-others__bottom a.added_to_cart,
.woocommerce-mini-cart-others__bottom a.button {
    padding: 17px 24px;
    background: var(--woo-blue);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    transition: var(--transition);
}
.woocommerce-mini-cart__buttons a.button:hover,
.woocommerce-mini-cart-others__bottom a.added_to_cart:hover,
.woocommerce-mini-cart-others__bottom a.button:hover {
    background-color: rgb(91, 84, 214);
}
.woocommerce-mini-cart-others__bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}
.woocommerce-mini-cart__buttons {
    display: flex;
    margin-top: 16px;
}
.woocommerce-mini-cart__buttons a {
    width: 100%;
}
.woocommerce-mini-cart__total {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #D8D8F7;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-family: 'Halogen';
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #141325;
}
.woocommerce-mini-cart__total span {
    color: var(--woo-blue);
}
/* Label stays dark on the left, amount stays blue on the right.
   Needs the parent in the selector to outweigh the rule above. */
.woocommerce-mini-cart__total .woocommerce-mini-cart__total-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #141325;
}
.woocommerce-mini-cart__total .woocommerce-mini-cart__total-label small {
    font-family: var(--woo-font);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #6E6E6E;
}
.woocommerce-mini-cart__total .woocommerce-mini-cart__total-amount {
    color: var(--woo-blue);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .popup-cart__wrapper {
        max-width: 414px;
        padding: 14px;
    }
    .popup-cart__close svg {
        width: 18px;
        height: auto;
    }
    .popup-cart__range--title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .popup-cart__range--bar {
        height: 4px;
    }
    .woocommerce-mini-cart {
        border-radius: 16px;
        padding: 8px 16px;
    }
    .woocommerce-mini-cart-item__image {
        width: 88px;
        height: 88px;
        border-radius: 8px;
    }
    .woocommerce-mini-cart-item__title a {
        font-size: 16px;
        line-height: 110%;
        padding-right: 35px;
        display: block;
    }
    .woocommerce-mini-cart-info p {
        font-size: 14px;
    }
    .woocommerce-mini-cart-info p img {
        width: 20px;
        height: 20px;
    }
    .woocommerce-mini-cart-others {
        margin-top: 16px;
    }
    .woocommerce-mini-cart-others h2 {
        font-size: 16px;
    }
    .woocommerce-mini-cart-others__top svg {
        width: 24px;
        height: 24px;
    }
    .woocommerce-mini-cart-others__wrapper {
        padding: 8px;
    }
    .woocommerce-mini-cart-others__title {
        font-size: 16px;
        line-height: 120%;
    }
    .woocommerce-mini-cart-others__excerpt {
        font-size: 12px;
    }
    .woocommerce-mini-cart-others .price {
        font-size: 14px;
    }
    .woocommerce-mini-cart-others .price del {
        font-size: 12px;
    }
    .woocommerce-mini-cart__buttons a.button, .woocommerce-mini-cart-others__bottom a.added_to_cart, .woocommerce-mini-cart-others__bottom a.button {
        padding: 17px 16px;
        font-size: 12px;
    }
    .woocommerce-mini-cart-item__qty .price ins,
    .woocommerce-mini-cart-item__qty .price {
        font-size: 20px;
    }
    .woocommerce-mini-cart-item__qty .price del {
        font-size: 12px;
    }
    .woocommerce-mini-cart .quantity {
        gap: 8px;
        width: 125px;
    }
    .woocommerce-mini-cart__total {
        font-size: 16px;
    }
}

@media (max-width: 414px) {
    .woocommerce-mini-cart-others__excerpt {
        font-size: 12px;
    }
    .woocommerce-mini-cart-others__title {
        font-size: 16px;
    }
    .woocommerce-mini-cart__buttons a.button, 
    .woocommerce-mini-cart-others__bottom a.added_to_cart, 
    .woocommerce-mini-cart-others__bottom a.button {
        padding: 13px 15px;
        font-size: 12px;
    }
}
