/* Scoped styles: no global WooCommerce product page rules are changed. */
.vspe-root {
    --vspe-accent: #a18151;
    --vspe-panel: #eaded0;
    --vspe-ink: #111820;
    --vspe-muted: #657387;
    --vspe-radius: 30px;
    max-width: 100%;
    margin: 30px auto 42px;
    padding-top: 20px;
    font-family: inherit;
    color: var(--vspe-ink)
}

.vspe-root * {
    box-sizing: border-box
}

.vspe-root .vspe-crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 30px;
    font-size: 13px;
    line-height: 1.4;
    color: #7f8790
}

.vspe-root .vspe-crumbs a {
    color: var(--vspe-accent);
    text-decoration: none
}

.vspe-root .vspe-crumb-divider {
    margin: 0 3px;
    color: #9ea5ab
}

.vspe-root .vspe-product {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    column-gap: clamp(20px, 3.6vw, 55px);
    align-items: start
}

.vspe-root .vspe-product-no-gallery {
    grid-template-columns: 1fr
}

.vspe-root .vspe-gallery-col,
.vspe-root .vspe-details-col {
    min-width: 0
}

.vspe-root .vspe-gallery-stage {
    height: auto;
    aspect-ratio: 3/4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    isolation: isolate
}

.vspe-root .vspe-gallery-track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform .35s ease;
    touch-action: pan-y;
    cursor: grab;
    will-change: transform
}

.vspe-root .vspe-gallery.is-dragging .vspe-gallery-track {
    transition: none;
    cursor: grabbing
}

.vspe-root .vspe-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.vspe-root .vspe-main-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none
}

@media(prefers-reduced-motion:reduce) {
    .vspe-root .vspe-gallery-track {
        transition: none
    }
}

.vspe-root .vspe-zoom {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #273c51;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(17, 24, 32, .08)
}

.vspe-root .vspe-zoom svg {
    display: block
}

/* Round arrow buttons (stage and thumbnail strip). Flex + block SVG keeps the icon centred. */
.vspe-root .vspe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    background: #fff;
    color: #273c51;
    border-radius: 50%;
    height: 44px;
    width: 44px;
    min-height: 0;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    font-size: 0;
    box-shadow: 0 2px 10px rgba(17, 24, 32, .1);
    transition: background .2s ease, color .2s ease, opacity .2s ease
}

.vspe-root .vspe-arrow svg {
    display: block;
    flex: none;
    width: 18px;
    height: 18px
}

.vspe-root .vspe-arrow:hover,
.vspe-root .vspe-arrow:focus-visible {
    color: #fff;
    background: var(--vspe-accent)
}

.vspe-root .vspe-gallery-prev {
    left: 16px
}

.vspe-root .vspe-gallery-next {
    right: 16px
}

.vspe-root .vspe-gallery-thumbs-nav {
    position: relative;
    margin-top: 16px
}

.vspe-root .vspe-thumbs-prev {
    left: 10px
}

.vspe-root .vspe-thumbs-next {
    right: 10px
}

.vspe-root .vspe-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth
}

.vspe-root .vspe-gallery-thumbs::-webkit-scrollbar {
    display: none
}

/* Arrows show on hover (or keyboard focus) on devices with a mouse; touch screens keep them visible. */
@media(hover:hover) {
    .vspe-root .vspe-arrow {
        opacity: 0;
        visibility: hidden;
        transition: background .2s ease, color .2s ease, opacity .2s ease, visibility .2s
    }

    .vspe-root .vspe-gallery-stage:hover .vspe-arrow,
    .vspe-root .vspe-gallery-stage:focus-within .vspe-arrow,
    .vspe-root .vspe-gallery-thumbs-nav:hover .vspe-arrow,
    .vspe-root .vspe-gallery-thumbs-nav:focus-within .vspe-arrow {
        opacity: 1;
        visibility: visible
    }
}

@media(max-width:700px) {
    .vspe-root .vspe-arrow {
        width: 38px;
        height: 38px
    }

    .vspe-root .vspe-arrow svg {
        width: 16px;
        height: 16px
    }

    .vspe-root .vspe-zoom {
        right: 14px;
        top: 14px;
        width: 40px;
        height: 40px
    }

    .vspe-root .vspe-gallery-prev,
    .vspe-root .vspe-thumbs-prev {
        left: 8px
    }

    .vspe-root .vspe-gallery-next,
    .vspe-root .vspe-thumbs-next {
        right: 8px
    }
}

.vspe-root .vspe-thumb {
    width: calc((100% - 32px)/5);
    flex: 0 0 calc((100% - 32px)/5);
    min-width: 55px;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center
}

.vspe-root .vspe-thumb:hover,
.vspe-root .vspe-thumb.is-active {
    border-color: #bdc0c3
}

.vspe-root .vspe-thumb img {
    height: 100%;
    width: 100%;
    object-fit: contain
}

.vspe-root .vspe-details-col {
    padding-left: 1px
}

.vspe-root .vspe-title a {
    color: inherit;
    text-decoration: none
}

.vspe-root .vspe-title a:hover {
    color: var(--vspe-accent)
}

.vspe-root .vspe-title {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.35vw, 30px);
    line-height: 1.22;
    letter-spacing: -.025em;
    font-weight: 700;
    color: var(--vspe-ink)
}

.vspe-root .vspe-excerpt {
    margin: 0 0 38px;
    color: var(--vspe-muted);
    font-size: 16px;
    line-height: 1.65
}

.vspe-root .vspe-excerpt p {
    margin: 0 0 8px
}

.vspe-root .vspe-excerpt p:last-child {
    margin-bottom: 0
}

.vspe-root .vspe-purchase-panel {
    background: var(--vspe-panel);
    border-radius: var(--vspe-radius);
    padding: 30px 40px 33px;
    margin: 0
}

.vspe-root .vspe-price {
    color: var(--vspe-ink) !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    margin: 0 0 22px !important;
    line-height: 1.25
}

.vspe-root .vspe-price .amount,
.vspe-root .vspe-price bdi {
    color: var(--theme-palette-color-4) !important;
    font-weight: inherit !important;
    font-size: inherit !important
}

.vspe-root .vspe-price del {
    font-size: 18px;
    margin-right: 10px
}

.vspe-root .vspe-price ins {
    text-decoration: none
}

.vspe-root .vspe-price:has(+ .viasecco-price-saving) {
    margin-bottom: 0 !important
}

/* Darker than the theme red/grey: needs 4.5:1 on the beige panel (WCAG AA). */
.vspe-root .vspe-price ins .amount,
.vspe-root .vspe-price ins bdi {
    color: #b91c1c !important
}

.vspe-root .viasecco-price-saving,
.vspe-root .viasecco-price-saving .amount,
.vspe-root .viasecco-price-saving bdi {
    color: #4f575d !important
}

.vspe-root .viasecco-price-saving {
    margin: 6px 0 22px !important
}

/* Keep WooCommerce's native forms, validation and variation handling intact. */
.vspe-root .vspe-cart-form form.cart {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important
}

.vspe-root .vspe-cart-form  .stock.in-stock {
    display: none;
}


.vspe-root .vspe-cart-form form.cart:not(.variations_form):not(.grouped_form) {
    display: block !important
}

.vspe-root .vspe-cart-form form.variations_form {
    display: block !important
}

.vspe-root .vspe-cart-form form.cart .stock.in-stock {
    display: none !important
}

.vspe-root .vspe-cart-form form.cart .stock:not(.in-stock) {
    margin: 0 0 12px
}

.vspe-root .vspe-cart-form form.cart .quantity.vspe-native-qty-hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important
}

/* The visible quantity capsule stays white against the beige purchase panel. */
/* Our layout is a real flex row, regardless of how WoodMart lays out form.cart. */
.vspe-root .vspe-cart-form form.cart .vspe-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    order: 0 !important;
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 0 !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid var(--vspe-accent) !important;
    border-radius: 99px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    position: relative !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper .vspe-step {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    order: initial !important;
    width: 38px !important;
    height: 58px !important;
    min-width: 38px !important;
    min-height: 0 !important;
    max-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: #526174 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline-offset: -5px !important;
    text-shadow: none !important;
    transform: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    line-height: 1 !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper .vspe-step::before,
.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper .vspe-step::after {
    content: none !important;
    display: none !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper .vspe-step svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    fill: none !important;
    pointer-events: none !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper .vspe-step:disabled {
    opacity: .35 !important;
    cursor: not-allowed !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper input.vspe-qty-display {
    display: block !important;
    order: initial !important;
    flex: 1 1 0 !important;
    width: 1px !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 58px !important;
    min-height: 0 !important;
    line-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    background: transparent !important;
    color: #526174 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline-offset: -5px !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    position: static !important;
    float: none !important
}

.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper input.vspe-qty-display::-webkit-outer-spin-button,
.vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper input.vspe-qty-display::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button,
.vspe-root .vspe-cart-form form.cart .vspe-actions a.vspe-view-cart-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 62px !important;
    height: auto !important;
    padding: 14px 24px !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    border: 0 !important;
    border-radius: 99px !important;
    background: var(--vspe-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    opacity: 1
}

.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button:hover,
.vspe-root .vspe-cart-form form.cart .vspe-actions a.vspe-view-cart-button:hover {
    filter: brightness(.94)
}

.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button.vspe-loading {
    cursor: progress !important;
    pointer-events: none !important;
    gap: .5em !important
}

.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button::before,
.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button:not(.vspe-loading)::after {
    content: none !important;
    display: none !important
}

/* Same spinner as Blocksy's product page button; defined here because Blocksy's WooCommerce CSS may not load on embedding pages. */
.vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button.vspe-loading::after {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 auto;
    width: var(--theme-button-spinner-size, 16px);
    height: var(--theme-button-spinner-size, 16px);
    margin: 0 !important;
    border: 0 !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform: none;
    animation: vspe-spin 1s linear infinite !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' opacity='0.2' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2.5'/%3E%3Cpath d='m12,2c5.52,0,10,4.48,10,10' fill='none' stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5'/%3E%3C/svg%3E") center no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' opacity='0.2' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2.5'/%3E%3Cpath d='m12,2c5.52,0,10,4.48,10,10' fill='none' stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5'/%3E%3C/svg%3E") center no-repeat
}

@keyframes vspe-spin {
    to {
        transform: rotate(360deg)
    }
}

.vspe-root .vspe-cart-form .variations {
    width: 100%;
    margin: 0 0 18px !important;
    border: 0 !important
}

.vspe-root .vspe-cart-form .variations th,
.vspe-root .vspe-cart-form .variations td {
    padding: 7px 8px 7px 0 !important;
    border: 0 !important;
    vertical-align: middle
}

.vspe-root .vspe-cart-form .variations select {
    max-width: 100%;
    min-height: 42px;
    background: #fff
}

.vspe-root .vspe-cart-form .woocommerce-variation-price,
.vspe-root .vspe-cart-form .woocommerce-variation-description {
    margin: 0 0 12px
}

.vspe-root .vspe-cart-form .woocommerce-variation-add-to-cart {
    width: 100% !important;
    max-width: none !important
}

.vspe-root .vspe-cart-form form.cart.grouped_form {
    display: block !important
}

.vspe-root .vspe-cart-form .group_table {
    width: 100%;
    margin: 0 0 20px
}

.vspe-root .vspe-cart-form .group_table td {
    padding: 6px;
    border: 0
}

.vspe-root .vspe-cart-form .woocommerce-notices-wrapper {
    width: 100%
}

.vspe-root .vspe-unavailable {
    margin: 0
}

.vspe-root .vspe-feedback {
    margin-top: 15px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 10px;
    background: #fff7f7;
    color: #8f2331
}

.vspe-root .vspe-feedback[hidden] {
    display: none !important
}

/* WC / WoodMart may append a second cart link when the AJAX event fires. */
.vspe-root .vspe-purchase-panel a.added_to_cart:not(.vspe-view-cart-button),
.vspe-root .vspe-purchase-panel a.wc-forward:not(.vspe-view-cart-button) {
    display: none !important
}

@media(max-width:940px) {
    .vspe-root .vspe-product {
        grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
        gap: 18px
    }

    .vspe-root .vspe-purchase-panel {
        padding: 24px
    }

    .vspe-root .vspe-excerpt {
        margin-bottom: 22px
    }
}

@media(max-width:700px) {
    .vspe-root {
        margin: 20px 0 34px
    }

    .vspe-root .vspe-product {
        display: flex;
        flex-direction: column;
        gap: 24px
    }

    .vspe-root .vspe-gallery-col,
    .vspe-root .vspe-details-col {
        width: 100%
    }

    .vspe-root .vspe-title {
        font-size: 28px
    }

    .vspe-root .vspe-excerpt {
        margin-bottom: 20px;
        font-size: 15px
    }

    .vspe-root .vspe-purchase-panel {
        border-radius: 23px;
        padding: 24px
    }

    .vspe-root .vspe-price {
        font-size: 23px !important
    }

    .vspe-root .vspe-crumbs {
        margin-bottom: 22px
    }
}

@media(max-width:430px) {
    .vspe-root .vspe-cart-form form.cart .vspe-actions {
        flex-wrap: wrap !important
    }

    .vspe-root .vspe-cart-form .vspe-actions .vspe-qty-stepper {
        flex: 0 0 150px !important
    }

    .vspe-root .vspe-cart-form form.cart .vspe-actions button.single_add_to_cart_button,
    .vspe-root .vspe-cart-form form.cart .vspe-actions a.vspe-view-cart-button {
        flex: 1 1 100% !important
    }
}

.vspe-cart-form input {
    background: #fff;
}