.hachitec-product-showcase {
    --hachitec-showcase-bg: var(--ast-global-color-5, #ffffff);
    --hachitec-showcase-surface: var(--ast-global-color-5, #ffffff);
    --hachitec-showcase-soft: var(--ast-global-color-4, #f6f7f8);
    --hachitec-showcase-text: currentColor;
    --hachitec-showcase-muted: color-mix(in srgb, var(--hachitec-showcase-text) 64%, transparent);
    --hachitec-showcase-border: color-mix(in srgb, var(--hachitec-showcase-text) 13%, transparent);
    --hachitec-showcase-primary: var(--ast-global-color-0, var(--ast-button-background-color, var(--ast-button-bg-color, currentColor)));
    --hachitec-showcase-primary-contrast: var(--ast-button-color, var(--ast-global-color-5, #ffffff));
    --hachitec-showcase-radius: 0;
    --hachitec-showcase-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --hachitec-showcase-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    color: inherit;
    width: 100%;
    max-width: min(1180px, 100%);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-x: clip;
    contain: inline-size;
}

@media (max-width: 720px) {
    html.hachitec-product-showcase-page,
    html.hachitec-product-showcase-page body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.hachitec-product-showcase *,
.hachitec-product-showcase *::before,
.hachitec-product-showcase *::after {
    box-sizing: border-box;
}

.hachitec-product-showcase__header {
    margin-bottom: 1.7rem;
    padding: 0;
}

.hachitec-product-showcase__title {
    position: relative;
    max-width: 780px;
    margin: 0 0 1.2rem;
    padding-bottom: 0.72rem;
    color: inherit;
    font-size: clamp(1.75rem, 1.28rem + 1.2vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hachitec-product-showcase__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4.5rem;
    height: 3px;
    background: var(--hachitec-showcase-primary);
}

.hachitec-product-showcase--title-center .hachitec-product-showcase__title {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hachitec-product-showcase--title-center .hachitec-product-showcase__title::after {
    right: 0;
    left: 0;
    margin: 0 auto;
}

.hachitec-product-showcase--title-right .hachitec-product-showcase__title {
    margin-left: auto;
    text-align: right;
}

.hachitec-product-showcase--title-right .hachitec-product-showcase__title::after {
    right: 0;
    left: auto;
}

.hachitec-product-showcase__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    padding: 0.15rem 0 0;
}

.hachitec-product-showcase__tab {
    appearance: none;
    position: relative;
    border: 0;
    background: transparent;
    color: var(--hachitec-showcase-muted);
    cursor: pointer;
    flex: 0 0 auto;
    min-height: 2.8rem;
    max-width: min(18rem, 78vw);
    padding: 0.72rem 0;
    border-radius: 0 !important;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 160ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--hachitec-showcase-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__mobile-switcher {
    display: none;
}

.hachitec-product-showcase__mobile-arrow {
    appearance: none;
    display: grid;
    place-items: center;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.7rem;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: var(--hachitec-showcase-primary);
    cursor: pointer;
    font-size: 1.85rem;
    line-height: 1;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 140ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__mobile-arrow:active {
    transform: scale(0.96);
}

.hachitec-product-showcase__mobile-current {
    position: relative;
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 2.9rem;
    padding: 0.38rem 0.75rem 0.62rem;
    border: 0;
    background: transparent;
    cursor: grab;
    text-align: center;
    touch-action: pan-y;
    transition:
        background-color 160ms ease,
        transform 180ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__mobile-current.is-dragging {
    cursor: grabbing;
    transition-duration: 0ms;
}

.hachitec-product-showcase__mobile-current > span {
    display: block;
    overflow: hidden;
    color: var(--hachitec-showcase-primary);
    font: inherit;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hachitec-product-showcase__mobile-current small {
    display: block;
    margin-top: 0.22rem;
    color: var(--hachitec-showcase-primary);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
    .hachitec-product-showcase__mobile-arrow:hover {
        background: transparent;
        color: var(--hachitec-showcase-text);
    }
}

.hachitec-product-showcase__tab:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .hachitec-product-showcase__tab:hover {
        background: transparent !important;
        color: var(--hachitec-showcase-text) !important;
    }
}

.hachitec-product-showcase__tab:focus-visible {
    background: transparent !important;
    color: var(--hachitec-showcase-text) !important;
    outline: 2px solid var(--hachitec-showcase-primary);
    outline-offset: 3px;
}

.hachitec-product-showcase__tab.is-active {
    background: transparent !important;
    color: var(--hachitec-showcase-primary) !important;
}

.hachitec-product-showcase__tab.is-active::after {
    transform: scaleX(1);
}

.hachitec-product-showcase--tabs-square .hachitec-product-showcase__tabs,
.hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tabs {
    gap: 0.55rem;
}

.hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab,
.hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab {
    border: 1px solid var(--hachitec-showcase-border);
    background: var(--hachitec-showcase-surface);
    color: var(--hachitec-showcase-text);
}

.hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab {
    border-radius: 0 !important;
}

.hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab {
    border-radius: 0;
}

.hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab::after,
.hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab::after {
    display: none;
}

.hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab.is-active,
.hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab.is-active {
    background: var(--hachitec-showcase-primary) !important;
    border-color: var(--hachitec-showcase-primary);
    color: var(--hachitec-showcase-primary-contrast) !important;
}

@media (hover: hover) and (pointer: fine) {
    .hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab:hover,
    .hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab:hover {
        background: var(--hachitec-showcase-surface) !important;
        color: var(--hachitec-showcase-text) !important;
    }

    .hachitec-product-showcase--tabs-square .hachitec-product-showcase__tab.is-active:hover,
    .hachitec-product-showcase--tabs-pill .hachitec-product-showcase__tab.is-active:hover {
        background: var(--hachitec-showcase-primary) !important;
        color: var(--hachitec-showcase-primary-contrast) !important;
    }
}

.hachitec-product-showcase__panels {
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.hachitec-product-showcase__panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: clamp(1.6rem, 4vw, 4.2rem);
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.hachitec-product-showcase__panel.is-active {
    display: grid;
    animation: hachitec-showcase-panel-in 260ms var(--hachitec-showcase-ease-out) both;
}

.hachitec-product-showcase__gallery {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.hachitec-product-showcase__viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: grab;
    touch-action: pan-y;
}

.hachitec-product-showcase__viewport.is-dragging {
    cursor: grabbing;
}

.hachitec-product-showcase__track {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 320ms var(--hachitec-showcase-ease-out);
    will-change: transform;
}

.hachitec-product-showcase__viewport.is-dragging .hachitec-product-showcase__track {
    transition-duration: 0ms;
}

.hachitec-product-showcase__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
}

.hachitec-product-showcase--image-cover .hachitec-product-showcase__slide {
    padding: 0;
}

.hachitec-product-showcase__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    pointer-events: none;
    transform: scale(0.985);
    box-shadow: 0 16px 42px color-mix(in srgb, #000000 10%, transparent);
    transition: transform 260ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase--image-cover .hachitec-product-showcase__image {
    border-radius: 0;
    object-fit: cover;
}

.hachitec-product-showcase__slide.is-active .hachitec-product-showcase__image {
    transform: scale(1);
}

.hachitec-product-showcase__arrow {
    appearance: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid color-mix(in srgb, var(--hachitec-showcase-text) 10%, transparent);
    border-radius: 0;
    background: color-mix(in srgb, var(--hachitec-showcase-bg) 88%, transparent);
    color: var(--hachitec-showcase-text);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px color-mix(in srgb, #000000 14%, transparent);
    transition:
        color 180ms ease,
        border-color 180ms ease,
        transform 160ms var(--hachitec-showcase-ease-out),
        background-color 180ms ease;
}

.hachitec-product-showcase__arrow:active {
    transform: translateY(-50%) scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
    .hachitec-product-showcase__arrow:hover {
        border-color: var(--hachitec-showcase-primary);
        color: var(--hachitec-showcase-primary);
    }
}

.hachitec-product-showcase__arrow:focus-visible {
    outline: 2px solid var(--hachitec-showcase-primary);
    outline-offset: 3px;
}

.hachitec-product-showcase__arrow--prev {
    left: 0.8rem;
}

.hachitec-product-showcase__arrow--next {
    right: 0.8rem;
}

.hachitec-product-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.hachitec-product-showcase__dot {
    appearance: none;
    width: 1.65rem;
    height: 0.28rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--hachitec-showcase-text) 18%, transparent);
    cursor: pointer;
    transition:
        width 180ms var(--hachitec-showcase-ease-out),
        background-color 180ms ease,
        transform 160ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__dot:active {
    transform: scaleX(0.9);
}

.hachitec-product-showcase__dot.is-active {
    width: 2.3rem;
    background: var(--hachitec-showcase-primary);
}

.hachitec-product-showcase__thumbs {
    display: flex;
    gap: 0.55rem;
    max-width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.15rem 0 0.3rem;
    scrollbar-width: thin;
}

.hachitec-product-showcase__thumb {
    appearance: none;
    width: 4.2rem;
    height: 4.2rem;
    padding: 0.18rem;
    border: 1px solid var(--hachitec-showcase-border);
    border-radius: 0;
    background: var(--hachitec-showcase-bg);
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0.72;
    transition:
        opacity 180ms ease,
        border-color 180ms ease,
        transform 160ms var(--hachitec-showcase-ease-out);
}

.hachitec-product-showcase__thumb:active {
    transform: scale(0.96);
}

.hachitec-product-showcase__thumb.is-active {
    border-color: var(--hachitec-showcase-primary);
    opacity: 1;
}

.hachitec-product-showcase__thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.hachitec-product-showcase__content {
    min-width: 0;
    max-width: 520px;
    padding-top: clamp(0.1rem, 0.8vw, 0.55rem);
    animation: hachitec-showcase-content-in 340ms var(--hachitec-showcase-ease-out) 60ms both;
}

.hachitec-product-showcase__name {
    margin: 0 0 0.65rem;
    color: inherit;
    font-size: clamp(1.65rem, 1.25rem + 0.95vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hachitec-product-showcase__description {
    max-width: 60ch;
    color: var(--hachitec-showcase-muted);
    font-size: 1rem;
    line-height: 1.68;
}

.hachitec-product-showcase__description > :first-child {
    margin-top: 0;
}

.hachitec-product-showcase__description > :last-child {
    margin-bottom: 0;
}

.hachitec-product-showcase__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 1.15rem;
    color: var(--hachitec-showcase-text);
    font-size: 1.34rem;
    font-weight: 800;
    line-height: 1.2;
}

.hachitec-product-showcase__price del {
    color: color-mix(in srgb, var(--hachitec-showcase-text) 50%, transparent);
    font-size: 0.95em;
    font-weight: 600;
}

.hachitec-product-showcase__price ins {
    color: var(--hachitec-showcase-primary);
    text-decoration: none;
}

.hachitec-product-showcase__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    color: var(--hachitec-showcase-muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.hachitec-product-showcase__stock::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 0;
    background: #1f9d55;
}

.hachitec-product-showcase__stock.out-of-stock {
    color: #a33a2f;
}

.hachitec-product-showcase__stock.out-of-stock::before {
    background: #a33a2f;
}

.hachitec-product-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.45rem;
}

.hachitec-product-showcase__button,
.hachitec-product-showcase__button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.82rem 1.15rem;
    border-radius: 0 !important;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition:
        transform 160ms var(--hachitec-showcase-ease-out),
        box-shadow 180ms ease,
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.hachitec-product-showcase__button:active,
.hachitec-product-showcase__button.button:active {
    transform: scale(0.97);
}

.hachitec-product-showcase__button--primary,
.hachitec-product-showcase__button--primary.button {
    border: 1px solid var(--hachitec-showcase-primary);
    background: var(--hachitec-showcase-primary);
    color: var(--hachitec-showcase-primary-contrast);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--hachitec-showcase-primary) 22%, transparent);
}

.hachitec-product-showcase__button--secondary,
.hachitec-product-showcase__button--secondary.button {
    border: 1px solid var(--hachitec-showcase-border);
    background: transparent !important;
    color: var(--hachitec-showcase-text) !important;
}

@media (hover: hover) and (pointer: fine) {
    .hachitec-product-showcase__button--primary:hover,
    .hachitec-product-showcase__button--primary.button:hover {
        box-shadow: 0 14px 28px color-mix(in srgb, var(--hachitec-showcase-primary) 30%, transparent);
        transform: translateY(-1px);
    }

    .hachitec-product-showcase__button--secondary:hover,
    .hachitec-product-showcase__button--secondary.button:hover {
        background: transparent !important;
        border-color: var(--hachitec-showcase-primary);
        color: var(--hachitec-showcase-primary) !important;
    }
}

.hachitec-product-showcase-empty {
    color: inherit;
}

@keyframes hachitec-showcase-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes hachitec-showcase-content-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 840px) {
    .hachitec-product-showcase__panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hachitec-product-showcase__content {
        max-width: none;
    }

    .hachitec-product-showcase__name {
        display: none;
    }

    .hachitec-product-showcase--mobile-thumbs-hide .hachitec-product-showcase__thumbs {
        display: none;
    }
}

@media (max-width: 720px) {
    .hachitec-product-showcase__header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .hachitec-product-showcase__title {
        margin-bottom: 1rem;
    }

    .hachitec-product-showcase__tabs {
        display: none;
    }

    .hachitec-product-showcase__mobile-switcher {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        max-width: 92%;
        margin: 0 auto;
        gap: 0.35rem;
    }

    .hachitec-product-showcase__viewport {
        aspect-ratio: 1 / 0.86;
    }

    .hachitec-product-showcase__arrow {
        width: 2.35rem;
        height: 2.35rem;
    }

    .hachitec-product-showcase__thumb {
        width: 3.7rem;
        height: 3.7rem;
    }

    .hachitec-product-showcase__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hachitec-product-showcase__button,
    .hachitec-product-showcase__button.button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hachitec-product-showcase *,
    .hachitec-product-showcase *::before,
    .hachitec-product-showcase *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
