/* Single product page */
.at-single-product-page {
    padding: clamp(42px, 6vw, 74px) 0 clamp(72px, 9vw, 118px);
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.052), transparent 34%),
        var(--at-color-bg);
}

.at-single-product-breadcrumbs,
.at-single-product-breadcrumbs .woocommerce-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--at-color-muted-2);
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.at-single-product-breadcrumbs a {
    color: var(--at-color-muted-2);
}

.at-single-product-breadcrumbs a:hover,
.at-single-product-breadcrumbs a:focus-visible {
    color: var(--at-color-text);
}

.at-single-product-breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.18);
}


/* WooCommerce single product notices: fixed toast */
.at-single-product-page .woocommerce-notices-wrapper {
    position: fixed;
    top: clamp(18px, 3vw, 34px);
    left: 50%;
    z-index: 10020;
    width: min(520px, calc(100vw - 32px));
    margin: 0 !important;
    padding: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.at-single-product-page .woocommerce-notices-wrapper:empty {
    display: none;
}

.at-single-product-page .woocommerce-message,
.at-single-product-page .woocommerce-info,
.at-single-product-page .woocommerce-error {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: center;
    min-height: 0;
    margin: 0 !important;
    padding: 18px 52px 18px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px;
    color: var(--at-color-text);
    background: rgba(9, 14, 18, 0.94) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    list-style: none outside !important;
    pointer-events: auto;
    animation: atNoticeIn 0.24s ease-out both;
}

.at-single-product-page .woocommerce-message::before,
.at-single-product-page .woocommerce-info::before,
.at-single-product-page .woocommerce-error::before,
.at-single-product-page .woocommerce-message::after,
.at-single-product-page .woocommerce-info::after,
.at-single-product-page .woocommerce-error::after {
    display: none !important;
    content: none !important;
}

.at-single-product-page .woocommerce-error {
    display: block;
    padding-left: 20px !important;
}

.at-single-product-page .woocommerce-error li {
    margin: 0;
    padding: 0;
}

.at-single-product-page .woocommerce-message .button,
.at-single-product-page .woocommerce-info .button,
.at-single-product-page .woocommerce-error .button,
.at-single-product-page .woocommerce-message .wc-forward,
.at-single-product-page .woocommerce-info .wc-forward,
.at-single-product-page .woocommerce-error .wc-forward {
    order: 2;
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: auto;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    color: var(--at-color-text) !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.at-single-product-page .woocommerce-message .button:hover,
.at-single-product-page .woocommerce-message .button:focus-visible,
.at-single-product-page .woocommerce-info .button:hover,
.at-single-product-page .woocommerce-info .button:focus-visible,
.at-single-product-page .woocommerce-error .button:hover,
.at-single-product-page .woocommerce-error .button:focus-visible {
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.12) !important;
}

.at-single-product-page .at-woocommerce-notice-close {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.075);
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color var(--at-transition), background-color var(--at-transition), transform var(--at-transition);
}

.at-single-product-page .at-woocommerce-notice-close::before,
.at-single-product-page .at-woocommerce-notice-close::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
}

.at-single-product-page .at-woocommerce-notice-close::before {
    transform: rotate(45deg);
}

.at-single-product-page .at-woocommerce-notice-close::after {
    transform: rotate(-45deg);
}

.at-single-product-page .at-woocommerce-notice-close:hover,
.at-single-product-page .at-woocommerce-notice-close:focus-visible {
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.12);
}

.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-message,
.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-info,
.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-error {
    animation: atNoticeOut 0.18s ease-in both;
}

@keyframes atNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

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

@keyframes atNoticeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 640px) {
    .at-single-product-page .woocommerce-message,
    .at-single-product-page .woocommerce-info,
    .at-single-product-page .woocommerce-error {
        grid-template-columns: 1fr;
        padding: 16px 50px 16px 18px !important;
        font-size: 14px;
    }

    .at-single-product-page .woocommerce-message .button,
    .at-single-product-page .woocommerce-info .button,
    .at-single-product-page .woocommerce-error .button {
        justify-self: start;
        min-height: 36px;
        padding: 0 16px;
    }
}

.at-single-product-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: clamp(28px, 4.6vw, 64px);
    align-items: start;
    margin-bottom: clamp(72px, 10vw, 128px);
}

.at-single-product-gallery {
    min-width: 0;
}

.at-single-product-gallery__stage {
    position: relative;
    overflow: hidden;
    min-height: clamp(320px, 35vw, 470px);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: var(--at-radius-sm);
    background: rgba(255, 255, 255, 0.035);
}

.at-single-product-gallery__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: clamp(26px, 4vw, 56px);
    border: 0;
    opacity: 0;
    visibility: hidden;
    background: transparent;
    cursor: zoom-in;
    transition: opacity var(--at-transition), visibility var(--at-transition);
}

.at-single-product-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.at-single-product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.at-single-product-gallery__control,
.at-product-lightbox__control,
.at-related-products__control {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    color: var(--at-color-muted);
    background: rgba(7, 11, 14, 0.78);
    backdrop-filter: blur(12px);
    transition: color var(--at-transition), border-color var(--at-transition), background-color var(--at-transition), transform var(--at-transition);
}

.at-single-product-gallery__control::before,
.at-product-lightbox__control::before,
.at-related-products__control::before {
    content: '';
    width: 9px;
    height: 9px;
    border-top: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;
}

.at-single-product-gallery__control:hover,
.at-single-product-gallery__control:focus-visible,
.at-product-lightbox__control:hover,
.at-product-lightbox__control:focus-visible,
.at-related-products__control:hover,
.at-related-products__control:focus-visible {
    color: var(--at-color-text);
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.09);
}

.at-single-product-gallery__control--prev {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.at-single-product-gallery__control--next {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.at-single-product-gallery__control--prev::before,
.at-product-lightbox__control--prev::before,
.at-related-products__control--prev::before {
    transform: rotate(-45deg) translate(1px, 1px);
}

.at-single-product-gallery__control--next::before,
.at-product-lightbox__control--next::before,
.at-related-products__control--next::before {
    transform: rotate(135deg) translate(1px, 1px);
}

.at-single-product-gallery__thumbs,
.at-product-lightbox__thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.at-single-product-gallery__thumb,
.at-product-lightbox__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 52px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: var(--at-radius-xs);
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.62;
    transition: opacity var(--at-transition), border-color var(--at-transition), background-color var(--at-transition);
}

.at-single-product-gallery__thumb:hover,
.at-single-product-gallery__thumb:focus-visible,
.at-single-product-gallery__thumb.is-active,
.at-product-lightbox__thumb:hover,
.at-product-lightbox__thumb:focus-visible,
.at-product-lightbox__thumb.is-active {
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.075);
    opacity: 1;
}

.at-single-product-summary {
    padding-top: 6px;
}

.at-single-product-summary__sku {
    margin-bottom: 16px;
    color: var(--at-color-muted-2);
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.at-single-product-summary__title {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.at-single-product-summary__description {
    max-width: 650px;
    margin-bottom: 28px;
    color: var(--at-color-muted);
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.at-single-product-summary__description p:last-child {
    margin-bottom: 0;
}

.at-single-product-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.at-single-product-cart__price,
.at-single-product-cart__price .price,
.woocommerce div.product .at-single-product-cart__price p.price,
.woocommerce div.product .at-single-product-cart__price span.price {
    min-width: 140px;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.at-single-product-cart__price .woocommerce-Price-amount.amount,
.at-single-product-cart__price .woocommerce-Price-currencySymbol {
    font-size: 32px;
}

.at-single-product-cart__quantity {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
}

.at-single-product-cart__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-height: 42px;
    border: 0;
    color: var(--at-color-text);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.at-single-product-cart__qty-btn:hover,
.at-single-product-cart__qty-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.woocommerce .at-single-product-cart__quantity .quantity .qty,
.at-single-product-cart__quantity .qty {
    width: 34px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--at-color-text);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    appearance: textfield;
}

.at-single-product-cart__quantity .qty::-webkit-outer-spin-button,
.at-single-product-cart__quantity .qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.at-single-product-cart__unit {
    min-width: 32px;
    margin-left: -2px;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.woocommerce div.product form.cart .button.at-single-product-cart__button,
.at-single-product-cart__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    color: var(--at-color-bg);
    background: var(--at-color-accent);
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: transform var(--at-transition), background-color var(--at-transition), color var(--at-transition);
}

.woocommerce div.product form.cart .button.at-single-product-cart__button:hover,
.woocommerce div.product form.cart .button.at-single-product-cart__button:focus-visible,
.at-single-product-cart__button:hover,
.at-single-product-cart__button:focus-visible {
    color: var(--at-color-bg);
    background: #ffffff;
    transform: translateY(-1px);
}

.at-single-product-cart__button-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1);
}

.at-single-product-cart__stock {
    color: var(--at-color-muted);
}

.at-product-content-sections {
    display: grid;
    gap: clamp(46px, 6vw, 78px);
    margin-bottom: clamp(72px, 9vw, 112px);
}

.at-product-content-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
    color: var(--at-color-muted);
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.at-product-content-section--image-right {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
}

.at-product-content-section--image-right .at-product-content-section__image-wrap {
    order: 2;
}

.at-product-content-section--image-right .at-product-content-section__body {
    order: 1;
}

.at-product-content-section__image-wrap {
    overflow: hidden;
    border-radius: var(--at-radius-xs);
    background: rgba(255, 255, 255, 0.035);
}

.at-product-content-section__image {
    max-height: 465px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.at-product-content-section__body > *:first-child,
.at-product-content-section__text > *:first-child {
    margin-top: 0;
}

.at-product-content-section__body > *:last-child,
.at-product-content-section__text > *:last-child {
    margin-bottom: 0;
}

.at-product-content-section__title {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.at-product-content-section__text p {
    max-width: 840px;
}

.at-product-content-section__text img {
    height: auto;
    border-radius: var(--at-radius-xs);
}

.at-related-products {
    position: relative;
}

.at-related-products__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.at-related-products__title {
    margin: 0;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.at-related-products__slider-wrap {
    position: relative;
}

.at-related-products__slider {
    overflow: hidden;
}

.woocommerce .products.at-related-products__list,
.woocommerce-page .products.at-related-products__list,
ul.products.at-related-products__list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.woocommerce .products.at-related-products__list::-webkit-scrollbar,
.woocommerce-page .products.at-related-products__list::-webkit-scrollbar,
ul.products.at-related-products__list::-webkit-scrollbar {
    display: none;
}

.woocommerce .products.at-related-products__list li.product,
.woocommerce-page .products.at-related-products__list li.product,
ul.products.at-related-products__list li.product {
    flex: 0 0 calc((100% - 56px) / 5);
    scroll-snap-align: start;
}

.at-related-products__control {
    top: 50%;
    transform: translateY(-50%);
}

.at-related-products__control--prev {
    left: -62px;
}

.at-related-products__control--next {
    right: -62px;
}

.at-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: 24px;
}

.at-product-lightbox.is-open {
    display: block;
}

.at-product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.at-product-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: min(900px, calc(100vh - 48px));
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--at-color-line);
    border-radius: var(--at-radius-md);
    background: rgba(7, 11, 14, 0.94);
    box-shadow: var(--at-shadow-card);
}

.at-product-lightbox__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.at-product-lightbox__slide {
    display: none;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

.at-product-lightbox__slide.is-active {
    display: flex;
}

.at-product-lightbox__slide .at-single-product-gallery__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform var(--at-transition);
}

.at-product-lightbox.is-zoomed .at-product-lightbox__stage {
    cursor: grab;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active {
    align-items: flex-start;
    justify-content: flex-start;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active .at-single-product-gallery__image {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: scale(1.65);
    transform-origin: top left;
    cursor: zoom-out;
}

.at-product-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
}

.at-product-lightbox__close::before,
.at-product-lightbox__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--at-color-text);
}

.at-product-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.at-product-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.at-product-lightbox__control--prev {
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
}

.at-product-lightbox__control--next {
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
}

.at-product-lightbox__zoom {
    align-self: center;
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.055);
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

body.at-product-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1280px) {
    .at-related-products__control--prev {
        left: 10px;
    }

    .at-related-products__control--next {
        right: 10px;
    }
}

@media (max-width: 1100px) {
    
/* WooCommerce single product notices: fixed toast */
.at-single-product-page .woocommerce-notices-wrapper {
    position: fixed;
    top: clamp(18px, 3vw, 34px);
    left: 50%;
    z-index: 10020;
    width: min(520px, calc(100vw - 32px));
    margin: 0 !important;
    padding: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.at-single-product-page .woocommerce-notices-wrapper:empty {
    display: none;
}

.at-single-product-page .woocommerce-message,
.at-single-product-page .woocommerce-info,
.at-single-product-page .woocommerce-error {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: center;
    min-height: 0;
    margin: 0 !important;
    padding: 18px 52px 18px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px;
    color: var(--at-color-text);
    background: rgba(9, 14, 18, 0.94) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    list-style: none outside !important;
    pointer-events: auto;
    animation: atNoticeIn 0.24s ease-out both;
}

.at-single-product-page .woocommerce-message::before,
.at-single-product-page .woocommerce-info::before,
.at-single-product-page .woocommerce-error::before,
.at-single-product-page .woocommerce-message::after,
.at-single-product-page .woocommerce-info::after,
.at-single-product-page .woocommerce-error::after {
    display: none !important;
    content: none !important;
}

.at-single-product-page .woocommerce-error {
    display: block;
    padding-left: 20px !important;
}

.at-single-product-page .woocommerce-error li {
    margin: 0;
    padding: 0;
}

.at-single-product-page .woocommerce-message .button,
.at-single-product-page .woocommerce-info .button,
.at-single-product-page .woocommerce-error .button,
.at-single-product-page .woocommerce-message .wc-forward,
.at-single-product-page .woocommerce-info .wc-forward,
.at-single-product-page .woocommerce-error .wc-forward {
    order: 2;
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: auto;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    color: var(--at-color-text) !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.at-single-product-page .woocommerce-message .button:hover,
.at-single-product-page .woocommerce-message .button:focus-visible,
.at-single-product-page .woocommerce-info .button:hover,
.at-single-product-page .woocommerce-info .button:focus-visible,
.at-single-product-page .woocommerce-error .button:hover,
.at-single-product-page .woocommerce-error .button:focus-visible {
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.12) !important;
}

.at-single-product-page .at-woocommerce-notice-close {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.075);
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color var(--at-transition), background-color var(--at-transition), transform var(--at-transition);
}

.at-single-product-page .at-woocommerce-notice-close::before,
.at-single-product-page .at-woocommerce-notice-close::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
}

.at-single-product-page .at-woocommerce-notice-close::before {
    transform: rotate(45deg);
}

.at-single-product-page .at-woocommerce-notice-close::after {
    transform: rotate(-45deg);
}

.at-single-product-page .at-woocommerce-notice-close:hover,
.at-single-product-page .at-woocommerce-notice-close:focus-visible {
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.12);
}

.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-message,
.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-info,
.at-single-product-page .woocommerce-notices-wrapper.is-hiding .woocommerce-error {
    animation: atNoticeOut 0.18s ease-in both;
}

@keyframes atNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

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

@keyframes atNoticeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 640px) {
    .at-single-product-page .woocommerce-message,
    .at-single-product-page .woocommerce-info,
    .at-single-product-page .woocommerce-error {
        grid-template-columns: 1fr;
        padding: 16px 50px 16px 18px !important;
        font-size: 14px;
    }

    .at-single-product-page .woocommerce-message .button,
    .at-single-product-page .woocommerce-info .button,
    .at-single-product-page .woocommerce-error .button {
        justify-self: start;
        min-height: 36px;
        padding: 0 16px;
    }
}

.at-single-product-hero {
        grid-template-columns: 1fr;
    }

    .woocommerce .products.at-related-products__list li.product,
    .woocommerce-page .products.at-related-products__list li.product,
    ul.products.at-related-products__list li.product {
        flex-basis: calc((100% - 28px) / 3);
    }
}

@media (max-width: 760px) {
    .at-single-product-cart {
        align-items: stretch;
    }

    .at-single-product-cart__price {
        width: 100%;
    }

    .at-single-product-cart__button {
        flex: 1 1 100%;
    }

    .at-product-content-section,
    .at-product-content-section--image-right {
        grid-template-columns: 1fr;
    }

    .at-product-content-section--image-right .at-product-content-section__image-wrap,
    .at-product-content-section--image-right .at-product-content-section__body {
        order: initial;
    }

    .woocommerce .products.at-related-products__list li.product,
    .woocommerce-page .products.at-related-products__list li.product,
    ul.products.at-related-products__list li.product {
        flex-basis: calc((100% - 14px) / 2);
    }

    .at-product-lightbox {
        padding: 10px;
    }

    .at-product-lightbox__dialog {
        height: calc(100vh - 20px);
    }
}

@media (max-width: 560px) {
    .at-single-product-page {
        padding-top: 34px;
    }

    .at-single-product-gallery__stage {
        min-height: 280px;
    }

    .woocommerce .products.at-related-products__list li.product,
    .woocommerce-page .products.at-related-products__list li.product,
    ul.products.at-related-products__list li.product {
        flex-basis: 82%;
    }
}

/* Product gallery lightbox: zoom, touch gestures and thumbnail navigation */
.at-single-product-gallery__thumbs-wrap,
.at-product-lightbox__thumbs-wrap {
    display: grid;
    grid-template-columns: 38px minmax(0, auto) 38px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.at-single-product-gallery__thumbs,
.at-product-lightbox__thumbs {
    min-width: 0;
    width: 360px;
    max-width: 100%;
    margin-top: 0;
    justify-content: flex-start;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.at-single-product-gallery__thumbs::-webkit-scrollbar,
.at-product-lightbox__thumbs::-webkit-scrollbar {
    display: none;
}

.at-single-product-gallery__thumb-control,
.at-product-lightbox__thumb-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    color: var(--at-color-muted);
    background: rgba(7, 11, 14, 0.78);
    cursor: pointer;
    transition: color var(--at-transition), border-color var(--at-transition), background-color var(--at-transition);
}

.at-single-product-gallery__thumb-control::before,
.at-product-lightbox__thumb-control::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.7px solid currentColor;
    border-left: 1.7px solid currentColor;
}

.at-single-product-gallery__thumb-control:hover,
.at-single-product-gallery__thumb-control:focus-visible,
.at-product-lightbox__thumb-control:hover,
.at-product-lightbox__thumb-control:focus-visible {
    color: var(--at-color-text);
    border-color: var(--at-color-line-strong);
    background: rgba(255, 255, 255, 0.09);
}

.at-single-product-gallery__thumb-control--prev::before,
.at-product-lightbox__thumb-control--prev::before {
    transform: rotate(-45deg) translate(1px, 1px);
}

.at-single-product-gallery__thumb-control--next::before,
.at-product-lightbox__thumb-control--next::before {
    transform: rotate(135deg) translate(1px, 1px);
}

.at-product-lightbox {
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.at-product-lightbox.is-open {
    display: flex;
}

.at-product-lightbox__dialog {
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.at-product-lightbox__stage {
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.at-product-lightbox__slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.at-product-lightbox__slide.is-active {
    display: flex;
}

.at-product-lightbox__slide .at-single-product-gallery__image {
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__stage {
    cursor: grab;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__stage:active {
    cursor: grabbing;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active {
    align-items: center;
    justify-content: center;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active .at-single-product-gallery__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    cursor: grab;
}

.at-product-lightbox__close {
    cursor: pointer;
}

.at-product-lightbox__zoom {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px;
    border: 1px solid var(--at-color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
}

.at-product-lightbox__zoom-button,
.at-product-lightbox__zoom-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: var(--at-color-text);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--at-transition), opacity var(--at-transition);
}

.at-product-lightbox__zoom-value {
    min-width: 68px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.07);
}

.at-product-lightbox__zoom-button:hover,
.at-product-lightbox__zoom-button:focus-visible,
.at-product-lightbox__zoom-value:hover,
.at-product-lightbox__zoom-value:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.at-product-lightbox__zoom-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.at-product-lightbox__control,
.at-single-product-gallery__control,
.at-related-products__control {
    cursor: pointer;
}

@media (max-width: 760px) {
    .at-product-lightbox {
        padding: 10px;
    }

    .at-product-lightbox__dialog {
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        padding: 14px;
        border-radius: 18px;
    }

    .at-product-lightbox__close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .at-product-lightbox__control--prev {
        left: 14px;
    }

    .at-product-lightbox__control--next {
        right: 14px;
    }

    .at-single-product-gallery__thumbs-wrap,
    .at-product-lightbox__thumbs-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
    }

    .at-single-product-gallery__thumb-control,
    .at-product-lightbox__thumb-control {
        width: 34px;
        height: 34px;
    }
}


/* Lightbox pan/zoom fix: keep zoom centered and allow full panning to all edges. */
.at-product-lightbox__slide .at-single-product-gallery__image,
.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active .at-single-product-gallery__image {
    transform-origin: center center;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active {
    align-items: center;
    justify-content: center;
}


/* Notice focus outline cleanup + instant lightbox panning */
.at-single-product-page .woocommerce-notices-wrapper,
.at-single-product-page .woocommerce-message,
.at-single-product-page .woocommerce-info,
.at-single-product-page .woocommerce-error,
.at-single-product-page .woocommerce-message .button,
.at-single-product-page .woocommerce-info .button,
.at-single-product-page .woocommerce-error .button,
.at-single-product-page .woocommerce-message .wc-forward,
.at-single-product-page .woocommerce-info .wc-forward,
.at-single-product-page .woocommerce-error .wc-forward,
.at-single-product-page .at-woocommerce-notice-close {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.at-single-product-page .woocommerce-message:focus,
.at-single-product-page .woocommerce-message:focus-visible,
.at-single-product-page .woocommerce-info:focus,
.at-single-product-page .woocommerce-info:focus-visible,
.at-single-product-page .woocommerce-error:focus,
.at-single-product-page .woocommerce-error:focus-visible,
.at-single-product-page .woocommerce-message .button:focus,
.at-single-product-page .woocommerce-message .button:focus-visible,
.at-single-product-page .woocommerce-info .button:focus,
.at-single-product-page .woocommerce-info .button:focus-visible,
.at-single-product-page .woocommerce-error .button:focus,
.at-single-product-page .woocommerce-error .button:focus-visible,
.at-single-product-page .woocommerce-message .wc-forward:focus,
.at-single-product-page .woocommerce-message .wc-forward:focus-visible,
.at-single-product-page .woocommerce-info .wc-forward:focus,
.at-single-product-page .woocommerce-info .wc-forward:focus-visible,
.at-single-product-page .woocommerce-error .wc-forward:focus,
.at-single-product-page .woocommerce-error .wc-forward:focus-visible,
.at-single-product-page .at-woocommerce-notice-close:focus,
.at-single-product-page .at-woocommerce-notice-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.at-product-lightbox__slide .at-single-product-gallery__image,
.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active .at-single-product-gallery__image {
    transition: none !important;
}

.at-product-lightbox.is-zoomed .at-product-lightbox__slide.is-active .at-single-product-gallery__image:active {
    cursor: grabbing;
}
