/* ==========================================================================
   SHOP ARCHIVE LAYOUT
   ========================================================================== */

.shop-archive {
    padding: 60px 0 80px;
    background-color: var(--color-white);
}

.shop-archive__container {
    max-width: calc(1325px + var(--container-padding) * 2);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 60px;
    align-items: start;
}

.shop-archive__main {
    min-width: 0;
}

.shop-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 35px;
    margin-bottom: 60px;
}

.shop-archive__empty {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-gray);
    padding: 60px 0;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.product-card {
    position: relative;
    background-color: transparent;
}

.product-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card__link:hover {
    opacity: 1;
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 308 / 326;
    background-color: var(--color-black);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__favorite {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: transform var(--transition);
}

.product-card__favorite:hover {
    transform: scale(1.08);
}

.product-card__favorite svg {
    width: 20px;
    height: 20px;
    display: block;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    height: 145px;
    background-color: var(--color-black);
    text-align: center;
}

.product-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-decorative);
    font-weight: 400;
    font-size: 32px;
    line-height: 32px;
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    word-break: break-word;
}

.product-card__prices {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -21px;
    position: relative;
    z-index: 1;
}

.product-card__price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 121px;
    height: 42px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    color: var(--color-off-white);
    text-align: center;
    white-space: nowrap;
}

.product-card__price--current {
    background-color: var(--color-red);
}

.product-card.is-on-sale .product-card__price--current {
    background-color: #037750;
}

.product-card__price--old {
    background-color: #A2A2A2;
    text-decoration: line-through;
}

.product-card__price .woocommerce-Price-amount,
.product-card__price bdi {
    font: inherit;
    color: inherit;
    text-decoration: inherit;
}

.product-card__lowest-price {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: #A7A9AC;
    text-align: center;
    margin: 3px 0 0;
    padding: 0;
}

/* ==========================================================================
   SHOP CATEGORIES
   ========================================================================== */

.shop-categories__toggle,
.shop-categories__collapse {
    display: none;
}

.shop-categories__heading {
    font-family: var(--font-decorative);
    font-weight: 400;
    font-size: 36px;
    line-height: 1;
    color: var(--color-black);
    margin-bottom: 38px;
    text-transform: uppercase;
}

.shop-categories__groups {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 59px;
}

.shop-categories__group {
    list-style: none;
}

.shop-categories__group-label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1.6px;
    color: var(--color-red);
    text-transform: uppercase;
    margin-bottom: 11px;
}

.shop-categories__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.shop-categories__item {
    list-style: none;
}

.shop-categories__link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.8px;
    color: var(--color-black);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    padding: 3px 12px;
    margin: -3px -12px;
    border-radius: 100px;
    transition: background-color var(--transition), color var(--transition);
}

.shop-categories__item.is-active .shop-categories__link,
.shop-categories__link:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    opacity: 1;
}

/* ==========================================================================
   TABLET / NARROW DESKTOP - 2 columns
   ========================================================================== */

@media (max-width: 1200px) and (min-width: 1001px) {
    .shop-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 1000px) {
    .shop-archive {
        padding: 0 0 40px;
    }

    .shop-archive__container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .shop-archive__main {
        padding: 0 18px;
    }

    .shop-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 23px 14px;
        margin-top: 24px;
        margin-bottom: 30px;
    }

    .product-card__body {
        padding: 10px;
        height: 92px;
    }

    .product-card__title {
        font-size: 20px;
        line-height: 20px;
        margin: 0;
    }

    .product-card__prices {
        gap: 6px;
        margin-top: -13px;
    }

    .product-card__price {
        max-width: 82px;
        height: 23px;
        font-size: 16px;
    }

    .product-card__lowest-price {
        font-size: 16px;
        line-height: 1;
        padding: 2px 0 4px;
    }

    .shop-categories {
        background-color: var(--color-red);
    }

    .shop-categories__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 19px 20px;
        background-color: var(--color-red);
        color: var(--color-off-white);
        font-family: var(--font-decorative);
        font-weight: 400;
        font-size: 30px;
        line-height: 1;
        text-transform: uppercase;
    }

    .shop-categories__title {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        height: 40px;
        transform: translateY(4px);
    }

    .shop-categories__chevron {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--color-white);
        color: var(--color-black);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .shop-categories[data-open="true"] .shop-categories__chevron {
        opacity: 0;
        visibility: hidden;
        display: none;
    }

    .shop-categories__panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background-color: var(--color-red);
        position: relative;
    }

    .shop-categories[data-open="true"] .shop-categories__panel {
        max-height: 2000px;
        padding-bottom: 40px;
    }

    .shop-categories[data-open="true"] .shop-categories__collapse svg{
        transform: scaleY(-1);
    }

    .shop-categories__collapse {
        display: none;
    }

    .shop-categories[data-open="true"] .shop-categories__collapse {
        display: flex;
        position: absolute;
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--color-white);
        color: var(--color-black);
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 2;
    }

    .shop-categories__heading {
        display: none;
    }

    .shop-categories__groups {
        gap: 0;
        padding: 0 20px 28px;
        align-items: center;
    }

    .shop-categories__group-label {
        display: none;
    }

    .shop-categories__list {
        gap: 10px;
        align-items: center;
        padding: 6px 0;
    }

    .shop-categories__link {
        background-color: var(--color-white);
        color: var(--color-black);
        padding: 5px 18px;
        border-radius: 100px;
        white-space: nowrap;
    }

    .shop-categories__item.is-active .shop-categories__link,
    .shop-categories__link:hover {
        background-color: var(--color-black);
        color: var(--color-white);
    }
}

@media (max-width: 400px) {
    .shop-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 360px) {
    .shop-categories__toggle {
        gap: 8px;
        padding: 16px 14px;
        font-size: 24px;
    }

    .shop-categories__title {
        height: 32px;
        transform: translateY(3px);
    }

    .shop-categories__chevron {
        width: 32px;
        height: 32px;
    }

    .shop-categories__chevron svg {
        width: 14px;
    }

    .shop-categories[data-open="true"] .shop-categories__collapse {
        right: 14px;
        bottom: 14px;
        width: 32px;
        height: 32px;
    }

    .shop-categories[data-open="true"] .shop-categories__panel {
        padding-bottom: 32px;
    }
}
