/* SGCE 2026 — desktop single-product presentation. */
.single-product { background: #fff; }
.sgce-commerce-single { color: #222; background: #fff; }
.sgce-commerce-single > .woocommerce-notices-wrapper { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.sgce-single-product__hero {
    display: grid;
    width: min(1200px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: start;
    margin: 0 auto;
    padding: 30px 0 50px;
}
.sgce-single-product__gallery,
.sgce-single-product__summary { min-width: 0; }
.sgce-single-product__gallery {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}
.sgce-single-product__gallery .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    opacity: 1 !important;
}
.sgce-single-product__gallery .woocommerce-product-gallery__wrapper,
.sgce-single-product__gallery .flex-viewport { height: 100% !important; }
.sgce-single-product__gallery .woocommerce-product-gallery__image,
.sgce-single-product__gallery .woocommerce-product-gallery__image > a {
    display: flex !important;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.sgce-single-product__gallery .woocommerce-product-gallery__image > a {
    pointer-events: none;
    cursor: default;
}
.sgce-single-product__gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    transform: none !important;
}
.sgce-single-product__gallery .woocommerce-product-gallery__trigger,
.sgce-single-product__gallery .flex-control-thumbs,
.sgce-single-product__gallery .flex-direction-nav { display: none !important; }

.sgce-gallery-controls {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 18px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    pointer-events: none;
}
.sgce-gallery-controls__dots { display: flex; align-items: center; gap: 22px; justify-self: center; pointer-events: auto; }
.sgce-gallery-controls__dot {
    width: 6px;
    height: 6px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    box-shadow: none;
    cursor: pointer;
}
.sgce-gallery-controls__dot:not(.is-active) { transform: scale(.7); }
.sgce-gallery-controls__arrows { display: flex; gap: 22px; pointer-events: auto; }
.sgce-gallery-controls__arrow {
    display: flex;
    width: 28px;
    height: 28px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #222;
    background: transparent;
    box-shadow: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.sgce-single-product__breadcrumb { margin-bottom: 24px; color: #888; font-size: 12px; line-height: 1.5; }
.sgce-single-product__breadcrumb a { color: #777; }
.sgce-single-product__breadcrumb .woocommerce-breadcrumb > a:first-child {
    display: inline-block;
    width: 14px;
    height: 14px;
    overflow: hidden;
    background-color: currentColor;
    -webkit-mask: url("../images/icon-home.svg") center / contain no-repeat;
    mask: url("../images/icon-home.svg") center / contain no-repeat;
    text-indent: -9999px;
    vertical-align: -2px;
}
.sgce-single-product__summary .product_title { margin: 0 0 14px; color: #222; font-size: 25px; font-weight: 700; line-height: 1.25; }
.sgce-single-product__summary .woocommerce-product-rating { margin-bottom: 14px; }
.sgce-single-product__summary .woocommerce-product-details__short-description { margin: 0 0 18px; color: #555; font-size: 14px; line-height: 1.75; }
.sgce-single-product__summary .woocommerce-product-details__short-description > :first-child { margin-top: 0; }
.sgce-single-product__summary .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.sgce-single-product__summary .product_meta { display: none !important; }
.sgce-single-product__summary .quantity { display: none; }

.sgce-single-product__summary #sgce_variations_form,
.sgce-single-product__summary form.cart { width: 100%; margin: 18px 0 0; }
.sgce-single-product__summary .sgce-price { margin: 18px 0; }
.sgce-single-product__summary .sgce-price .price-wrapper,
.sgce-single-product__summary .sgce-price .price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    color: #9a2134;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.sgce-single-product__summary .sgce-price del { color: #222; font-size: 18px; font-weight: 300; opacity: 1; text-decoration-color: #222; }
.sgce-single-product__summary .sgce-price ins { color: #9a2134; text-decoration: none; }

.sgce-single-product__summary .sgce-actions { width: 100%; margin-top: 20px; }
.sgce-single-product__summary .sgce-actions__row {
    display: flex;
    width: 100%;
    gap: 5px;
    margin-bottom: 5px;
    background: #fff;
}
.sgce-single-product__summary .sgce-actions__btn,
.sgce-single-product__summary .sgce-actions__buy-now {
    display: flex;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #333;
    border-radius: 0;
    color: #fff;
    background: #222;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.sgce-single-product__summary .sgce-actions__btn { min-width: 0; flex: 1 1 50%; }
.sgce-single-product__summary .sgce-actions__buy-now { width: 100%; border: 0; font-weight: 700; text-transform: uppercase; }
.sgce-single-product__summary .sgce-actions__btn:hover,
.sgce-single-product__summary .sgce-actions__btn:focus-visible,
.sgce-single-product__summary .sgce-actions__buy-now:hover,
.sgce-single-product__summary .sgce-actions__buy-now:focus-visible { color: #fff; background: #3a3a3a; }
.sgce-single-product__summary .added_to_cart.wc-forward { display: none !important; }

.sgce-single-product__content { width: min(1200px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid #ddd; }
.sgce-single-product__content-inner { width: min(1000px, 100%); margin: 0 auto; }
.sgce-single-product__content .woocommerce-tabs { width: 100%; }
.sgce-single-product__content .wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
}
.sgce-single-product__content .wc-tabs::before,
.sgce-single-product__content .wc-tabs::after { display: none !important; }
.sgce-single-product__content .wc-tabs li { margin: 0; padding: 0; border: 0; background: transparent; }
.sgce-single-product__content .wc-tabs li a {
    position: relative;
    display: block;
    padding-bottom: 7px;
    color: #777;
    font-size: 14px;
    font-weight: 700;
}
.sgce-single-product__content .wc-tabs li a::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    left: 50%;
    height: 2px;
    background: #222;
    content: "";
    transition: right 220ms ease, left 220ms ease;
}
.sgce-single-product__content .wc-tabs li.active a,
.sgce-single-product__content .wc-tabs li a:hover,
.sgce-single-product__content .wc-tabs li a:focus-visible { color: #222; }
.sgce-single-product__content .wc-tabs li.active a::after,
.sgce-single-product__content .wc-tabs li a:hover::after,
.sgce-single-product__content .wc-tabs li a:focus-visible::after { right: 0; left: 0; }
.sgce-single-product__content .woocommerce-Tabs-panel { padding: 0 0 50px; }
.sgce-single-product__content .woocommerce-Tabs-panel > :first-child { margin-top: 0; }
.sgce-single-product__content img,
.sgce-single-product__content video,
.sgce-single-product__content iframe,
.sgce-single-product__content table { max-width: 100%; }
.sgce-single-product__content img { height: auto; }
.sgce-single-product__content table { width: 100%; border-collapse: collapse; }
.sgce-single-product__content th,
.sgce-single-product__content td { padding: 15px 0; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.sgce-single-product__content .sgce-tech-specs .sgce-spec-title,
.sgce-single-product__content .sgce-tech-specs .sgce-spec-title * {
    color: rgba(0, 0, 0, .8);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
}
.sgce-single-product__content .sgce-tech-specs .sgce-spec-value,
.sgce-single-product__content .sgce-tech-specs .sgce-spec-value * {
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
}

/* Stable 600 px product-description reveal mechanism. */
.sgce-single-product__content #tab-description { position: relative; }
.sgce-single-product__content #tab-description.sgce-description--collapsed {
    height: 600px;
    overflow: hidden;
}
.sgce-single-product__content #tab-description .sgce-description-fade {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
    pointer-events: none;
}
.sgce-single-product__content #tab-description .sgce-description-fade[hidden] { display: none !important; }
.sgce-single-product__content .sgce-description-toggle-wrap {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: -58px 0 38px;
    position: relative;
    z-index: 4;
}
.sgce-single-product__content .sgce-description-toggle-wrap[hidden] { display: none !important; }
.sgce-single-product__content .sgce-description-toggle-wrap.is-expanded { margin-top: 20px; }
.sgce-single-product__content .sgce-description-toggle {
    display: flex;
    width: 200px;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #222;
    border-radius: 0;
    color: #fff;
    background: #222;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.sgce-single-product__content .sgce-description-toggle:hover,
.sgce-single-product__content .sgce-description-toggle:focus-visible {
    border-color: #000;
    color: #fff;
    background: #000;
}
.sgce-single-product__content .sgce-description-toggle .label { margin-left: auto; }
.sgce-single-product__content .sgce-description-toggle i {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: auto;
    transition: transform 300ms ease;
}
.sgce-single-product__content .sgce-description-toggle i::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}
.sgce-single-product__content .sgce-description-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.sgce-single-related.sgce-commerce-archive {
    width: min(1200px, calc(100% - 40px));
    min-height: 0;
    margin: 0 auto;
    padding: 20px 0 60px;
    border-top: 1px solid #ddd;
    background: #fff;
}
.sgce-single-related__title { margin: 0 0 25px; font-size: 22px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.sgce-single-related__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.sgce-single-related__viewport::-webkit-scrollbar { display: none; }
.sgce-single-related.sgce-commerce-archive ul.products.sgce-single-related__track {
    --sgce-related-gap: 0px;
    --sgce-related-card-width: 25%;
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--sgce-related-gap);
    margin: 0;
}
.sgce-single-related.sgce-commerce-archive ul.products.sgce-single-related__track > li.product.sgce-product-card {
    width: var(--sgce-related-card-width);
    min-width: var(--sgce-related-card-width);
    max-width: var(--sgce-related-card-width);
    flex: 0 0 var(--sgce-related-card-width);
    margin: 0;
}
.sgce-single-related__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}
.sgce-single-related__controls[hidden] { display: none !important; }
.sgce-single-related__progress { width: 160px; height: 2px; overflow: hidden; background: #d8d8d8; }
.sgce-single-related__progress > span { display: block; width: 0; height: 100%; background: #1f1f1f; transition: width 220ms ease; }
.sgce-single-related__arrows { display: flex; align-items: center; gap: 22px; }
.sgce-single-related__arrow {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    color: #1f1f1f;
    background: transparent;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.sgce-single-related__arrow[hidden] { display: none !important; }
.sgce-single-related__arrow:hover { color: #a71930; }

@media (min-width: 1024px) {
    .single-product .sgce-header {
        position: sticky;
        top: 0;
        height: 56px;
        color: var(--sgce-white);
        background: var(--sgce-black);
    }
    .single-product .sgce-header__inner {
        width: min(1400px, calc(100% - 40px));
        min-height: 56px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 56px;
        gap: 14px;
    }
    .single-product .sgce-header__top { grid-column: 1; grid-row: 1; }
    .single-product .sgce-logo { width: 74px; height: 28px; padding-right: 14px; border-right: 2px solid currentColor; }
    .single-product .sgce-brand-name { display: none; }
    .single-product .sgce-primary-nav { display: block; grid-column: 2; grid-row: 1; }
    .single-product .sgce-primary-nav__item > a { font-size: 13px; }
    .single-product .sgce-header-actions { grid-column: 3; grid-row: 1; }
    .single-product .sgce-search-shell { width: 38px; height: 38px; flex-basis: 38px; }
    .single-product .sgce-primary-nav__list { justify-content: flex-start; padding-left: clamp(0px, calc((100vw - 1393.464788px) / 2), 23.267606px); }
    .admin-bar.single-product .sgce-header { top: 32px; }
}

@media (min-width: 1240px) {
    .sgce-single-product__hero { grid-template-columns: 550px 100px 550px; }
    .sgce-single-product__gallery { width: 550px; height: 550px; aspect-ratio: auto; }
    .sgce-single-product__summary { width: 550px; }
    .sgce-single-related.sgce-commerce-archive ul.products { width: 1200px; max-width: none; }
}

@media (max-width: 1239px) {
    .sgce-single-related.sgce-commerce-archive ul.products.sgce-single-related__track {
        --sgce-related-gap: 20px;
        --sgce-related-card-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 767px) {
    .sgce-single-related.sgce-commerce-archive ul.products.sgce-single-related__track {
        --sgce-related-gap: 20px;
        --sgce-related-card-width: calc((100% - 20px) / 2);
    }
    .sgce-single-related__progress { width: 120px; }
}

@media (max-width: 1023px) {
    .single-product .sgce-header,
    .single-product .sgce-header.is-scrolled {
        position: sticky;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 70px;
        color: var(--sgce-white);
        background: var(--sgce-black);
        transform: none;
    }
    .single-product .sgce-header__inner,
    .single-product .sgce-header.is-scrolled .sgce-header__inner {
        width: 100%;
        max-width: none;
        min-height: 70px;
        display: flex;
        padding-inline: 10px;
    }
    .single-product .sgce-header.is-scrolled .sgce-logo { width: 62px; height: 25px; padding: 0; border: 0; }
    .single-product .sgce-search-shell > .sgce-icon-button img { width: 22px; height: 22px; max-width: none; object-fit: contain; }
    .admin-bar.single-product .sgce-header { top: 32px; }
}

@media (max-width: 782px) {
    .admin-bar.single-product .sgce-header { top: 46px; }
}

@media (max-width: 767px) {
    .sgce-single-product__hero { display: block; }
    .sgce-single-product__gallery { margin-bottom: 30px; }
    .sgce-single-product__summary { width: 100%; }
    .sgce-single-product__content .wc-tabs {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
    }
    .sgce-single-product__content .wc-tabs li { min-width: 0; flex: 0 1 auto; }
    .sgce-single-product__content .wc-tabs li a {
        white-space: nowrap;
        font-size: clamp(9px, 2.65vw, 11px);
        letter-spacing: -.25px;
    }
}
