/* WooCommerce product components */

.hob-product-card {
    height: 100%;
}

.hob-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hob-product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--hob-product-card-aspect-ratio, 4 / 5);
    border-radius: var(--hob-radius-card);
    background: var(--hob-surface-color);
    overflow: hidden;
    text-decoration: none;
}

.hob-product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--hob-transition-base), transform var(--hob-transition-base);
}

.woocommerce img.hob-product-card__image,
.woocommerce-page img.hob-product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.woocommerce ul.products.hob-shop__grid li.product .hob-product-card__media img.hob-product-card__image,
.woocommerce-page ul.products.hob-shop__grid li.product .hob-product-card__media img.hob-product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.hob-product-card__image--secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.hob-product-card:hover .hob-product-card__image--primary {
    transform: scale(1.02);
}

.hob-product-card:hover .hob-product-card__image--secondary {
    opacity: 1;
    transform: scale(1.02);
}

.hob-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hob-product-card__badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: var(--hob-radius-button);
    background: var(--hob-primary-color);
    color: var(--hob-background-color);
    font-family: var(--hob-body-font);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
}

.hob-product-card__badge--stock {
    border: 1px solid color-mix(in srgb, var(--hob-primary-color) 18%, transparent);
    background: var(--hob-background-color);
    color: var(--hob-primary-color);
}

.hob-product-card__content {
    display: grid;
    gap: 8px;
    padding-top: 20px;
    text-align: center;
}

.hob-product-card__title {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    color: var(--hob-primary-color);
    font-family: var(--hob-heading-font);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: center;
    transition: opacity var(--hob-transition-base);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hob-product-card__price {
    color: var(--hob-primary-color);
    font-family: var(--hob-body-font);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.hob-product-card__price del {
    color: var(--hob-body-color);
    opacity: 0.68;
}

.hob-product-card__price ins {
    color: var(--hob-primary-color);
    text-decoration: none;
}

.hob-product-card__link:focus-visible {
    outline: 2px solid var(--hob-primary-color);
    outline-offset: 3px;
}

.hob-product-card__link:hover .hob-product-card__title {
    opacity: 0.72;
}

.hob-product-carousel-section {
    padding-block: clamp(48px, 7vw, 88px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hob-product-carousel-section__inner {
    display: grid;
    gap: clamp(36px, 3.5vw, 56px);
    min-width: 0;
}

.hob-product-carousel-section__header {
    width: min(100%, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 0;
    text-align: center;
}

.hob-product-carousel-section__script-title {
    display: block;
    margin-bottom: -0.12em;
    color: #0c2030;
    font-family: "HOB Script", cursive;
    font-size: clamp(3rem, 4.6vw, 5rem);
    font-weight: 400;
    line-height: 1;
}

.hob-product-carousel-section__title {
    margin: 0;
    color: #0c2030;
    font-family: "HOB Alt Heading", var(--hob-heading-font);
    font-size: clamp(2.25rem, 3.5vw, 3.75rem);
    font-weight: 400;
    line-height: 0.98;
    text-transform: none;
}

.hob-product-carousel-section__text {
    max-width: 620px;
    color: var(--hob-body-color);
    font-size: 1rem;
    text-align: center;
}

.hob-product-carousel-section__text > * {
    margin-top: 0;
}

.hob-product-carousel-section__text > *:last-child {
    margin-bottom: 0;
}

.hob-product-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hob-product-carousel .hob-carousel__track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 18px;
}

.hob-product-carousel .swiper-wrapper {
    min-width: 0;
}

.hob-product-carousel .hob-carousel__slide {
    height: auto;
    min-width: 0;
}

.hob-product-carousel .hob-product-card {
    height: auto;
    min-width: 0;
}

.hob-product-carousel .hob-product-card__media {
    height: auto;
    min-height: 0;
}

.hob-product-carousel .hob-product-card__image {
    height: 100%;
    max-height: 100%;
}

.hob-product-carousel .hob-product-card__media--uncropped {
    aspect-ratio: auto;
}

.hob-product-carousel .hob-product-card__media--uncropped .hob-product-card__image--primary {
    position: relative;
    height: auto;
}

.hob-product-carousel[data-pagination-mobile="false"] .hob-carousel__pagination {
    display: none;
}

@media (max-width: 560px) {
    .hob-product-card__content {
        gap: 6px;
        padding-top: 18px;
    }

    .hob-product-card__title {
        font-size: 1.0625rem;
    }

    .hob-product-card__price {
        font-size: 0.875rem;
    }
}

@media (max-width: 767px) {
    .hob-product-carousel .hob-carousel__controls {
        display: none;
    }
}

@media (min-width: 768px) {
    .hob-product-carousel[data-pagination-mobile="false"] .hob-carousel__pagination {
        display: flex;
    }

    .hob-product-carousel[data-pagination-desktop="false"] .hob-carousel__pagination {
        display: none;
    }
}
