/*
 * AVA Single Product v1.4.0
 * Scoped to WooCommerce individual products.
 */

/* Product page design tokens */

body.single-product {
    --ava-sp-orange: #ef681d;
    --ava-sp-dark: #172633;
    --ava-sp-ink: #17212b;
    --ava-sp-muted: #627080;
    --ava-sp-border: #e2e8ee;
    --ava-sp-shadow: 0 14px 36px rgba(20,30,40,.07);
}

/* Product gallery and summary layout */

body.single-product .woocommerce div.product
.woocommerce-product-gallery {
    width: 47%;
    max-width: 47%;
    box-sizing: border-box;
    margin-bottom: 36px;
}

body.single-product .woocommerce div.product .summary {
    width: 49%;
    max-width: 49%;
    box-sizing: border-box;
    margin-bottom: 36px;
    padding: 30px;
    border: 1px solid var(--ava-sp-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ava-sp-shadow);
}

/* Product gallery imagery */

body.single-product div.product
.woocommerce-product-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

body.single-product div.product
.woocommerce-product-gallery__wrapper {
    overflow: hidden;
    border-radius: 12px;
}

body.single-product div.product
.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 0;
    margin: 0;
    list-style: none;
}

body.single-product div.product
.flex-control-thumbs li {
    overflow: hidden;
    border-radius: 8px;
}

/* Product summary */

body.single-product .ava-sp-eyebrow {
    margin: 0 0 14px;
    color: var(--ava-sp-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

body.single-product div.product .summary
.product_title {
    margin: 0 0 20px;
    color: var(--ava-sp-ink);
    font-size: clamp(27px,3vw,39px);
    font-weight: 800;
    line-height: 1.18;
}

body.single-product div.product .summary .price {
    display: block;
    margin: 0 0 22px;
    color: var(--ava-sp-ink);
    font-size: 30px;
    font-weight: 800;
}

body.single-product div.product
.woocommerce-product-details__short-description {
    margin: 18px 0 26px;
    color: var(--ava-sp-muted);
    font-size: 15px;
    line-height: 1.75;
}

body.single-product div.product
.woocommerce-product-details__short-description p {
    line-height: 1.75;
}

body.single-product div.product .summary
.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

body.single-product div.product
.single_add_to_cart_button {
    min-height: 47px;
    padding: 12px 21px;
    border: 0;
    border-radius: 8px;
    background: var(--ava-sp-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

body.single-product div.product
.single_add_to_cart_button:hover {
    background: #d55411;
}

body.single-product div.product
.product_meta {
    border-top: 1px solid var(--ava-sp-border);
    padding-top: 18px;
    margin-top: 24px;
    color: var(--ava-sp-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Description tabs */

body.single-product div.product
.woocommerce-tabs {
    clear: both;
    margin: 36px 0 48px;
}

body.single-product div.product
.woocommerce-tabs .panel {
    color: var(--ava-sp-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Specifications */

body.single-product .ava-sp-specs {
    clear: both;
    margin: 48px 0;
    padding: 32px;
    border: 1px solid var(--ava-sp-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(20,30,40,.045);
}

body.single-product .ava-sp-section-heading {
    margin-bottom: 24px;
}

body.single-product .ava-sp-section-heading > span {
    display: block;
    margin-bottom: 9px;
    color: var(--ava-sp-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

body.single-product .ava-sp-section-heading h2 {
    margin: 0;
    color: var(--ava-sp-ink);
    font-size: clamp(24px,2.7vw,33px);
    font-weight: 800;
    line-height: 1.2;
}

body.single-product .ava-sp-specs-table {
    overflow: hidden;
    border: 1px solid var(--ava-sp-border);
    border-radius: 10px;
}

body.single-product .ava-sp-specs-row {
    display: grid;
    grid-template-columns: 36% 64%;
    border-bottom: 1px solid var(--ava-sp-border);
}

body.single-product .ava-sp-specs-row:last-child {
    border-bottom: 0;
}

body.single-product .ava-sp-specs-label,
body.single-product .ava-sp-specs-value {
    min-width: 0;
    padding: 15px 19px;
    font-size: 14px;
    line-height: 1.55;
}

body.single-product .ava-sp-specs-label {
    background: #f4f6f8;
    color: #334554;
    font-weight: 700;
}

body.single-product .ava-sp-specs-value {
    background: #fff;
    color: #17212b;
    overflow-wrap: anywhere;
}

/* Custom fabrication inquiry */

body.single-product .ava-sp-inquiry {
    clear: both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 42px 0 52px;
    padding: 34px 38px;
    border-radius: 16px;
    background: linear-gradient(115deg,#15222d,#253746);
    box-shadow: 0 18px 42px rgba(15,26,38,.12);
}

body.single-product .ava-sp-inquiry-content {
    min-width: 0;
    flex: 1;
}

body.single-product .ava-sp-inquiry-content > span {
    display: block;
    margin-bottom: 11px;
    color: #ff995c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

body.single-product .ava-sp-inquiry h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(23px,2.8vw,32px);
    line-height: 1.2;
    font-weight: 800;
}

body.single-product .ava-sp-inquiry p {
    max-width: 650px;
    margin: 0;
    color: #dbe3e9;
    font-size: 15px;
    line-height: 1.7;
}

body.single-product .ava-sp-inquiry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 8px;
    background: var(--ava-sp-orange);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

body.single-product .ava-sp-inquiry-button:hover {
    background: #d55411;
    color: #fff !important;
}


/* ==========================================
   AVA SINGLE PRODUCT — RELATED PRODUCT CARDS
   The7 verified markup: ul.related-product
   ========================================== */

body.single-product section.related.products {
    clear: both;
    margin: 54px 0 40px;
}

body.single-product section.related.products > h2 {
    margin: 0 0 26px;
    color: #17212b;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 800;
}

/* Three equal product cards */
body.single-product section.related.products ul.related-product {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: stretch;
}

/* Individual product card */
body.single-product section.related.products ul.related-product > li {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px !important;
    float: none !important;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e2e8ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20, 30, 40, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.single-product section.related.products ul.related-product > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(20, 30, 40, .11);
}

/* Product image */
body.single-product .related-product .product-thumbnail {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f6;
}

body.single-product .related-product .product-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .3s ease;
}

body.single-product .related-product > li:hover .product-thumbnail img {
    transform: scale(1.035);
}

/* Card information */
body.single-product .related-product .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 0 3px 3px;
}

body.single-product .related-product .product-title {
    display: block;
    margin: 0 0 10px;
    color: #17212b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

body.single-product .related-product .product-title:hover {
    color: #ef681d;
}

body.single-product .related-product .price {
    display: block;
    margin: 0 0 18px;
    color: #17212b;
    font-size: 20px;
    font-weight: 800;
}

/* Align buttons at card bottom */
body.single-product .related-product .woo-buttons {
    margin-top: auto;
    padding-top: 8px;
}

body.single-product .related-product .woo-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px 15px;
    border-radius: 8px;
    background: #ef681d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
}

body.single-product .related-product .woo-buttons a:hover {
    background: #d55411;
    color: #fff !important;
}

/* Tablets */
@media (max-width: 1024px) {
    body.single-product section.related.products ul.related-product {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Phones */
@media (max-width: 640px) {
    body.single-product section.related.products ul.related-product {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.single-product section.related.products ul.related-product > li {
        padding: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .related-product > li,
    body.single-product .related-product .product-thumbnail img {
        transition: none;
    }
}


/* Tablet */

@media (max-width: 1024px) {
    body.single-product .woocommerce div.product
    .woocommerce-product-gallery,
    body.single-product .woocommerce div.product .summary {
        width: 100%;
        max-width: 100%;
        float: none;
    }

    body.single-product
    .related.products ul.products {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    body.single-product .ava-sp-inquiry {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile */

@media (max-width: 640px) {
    body.single-product .woocommerce div.product .summary {
        padding: 23px 20px;
    }

    body.single-product .ava-sp-specs {
        padding: 20px 16px;
        margin: 30px 0;
    }

    body.single-product .ava-sp-specs-row {
        grid-template-columns: 1fr;
    }

    body.single-product .ava-sp-specs-label {
        padding-bottom: 7px;
    }

    body.single-product .ava-sp-specs-value {
        padding-top: 9px;
    }

    body.single-product .ava-sp-inquiry {
        margin: 32px 0;
        padding: 26px 22px;
    }

    body.single-product .ava-sp-inquiry-button {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }

    body.single-product
    .related.products ul.products {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .ava-sp-inquiry-button {
        transition: none;
    }
}

/* AVA v1.4.1 — Related product image correction */

body.single-product section.related.products
ul.related-product > li > a.product-thumbnail {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 16px !important;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f6;
}

body.single-product section.related.products
ul.related-product > li > a.product-thumbnail > img {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

body.single-product section.related.products
ul.related-product > li > .product-content {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    width: 100% !important;
    min-width: 0;
}

body.single-product section.related.products
ul.related-product > li .woo-buttons {
    margin-top: auto;
}

/* AVA Single Product — Description Card */

body.single-product div.product .woocommerce-tabs {
    clear: both;
    box-sizing: border-box;
    margin: 44px 0 48px;
    padding: 28px 32px 32px;
    background: #f6f8fa;
    border: 1px solid #dfe6ec;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20,30,40,.055);
}

body.single-product div.product .woocommerce-tabs ul.tabs {
    margin: 0 0 24px;
    padding: 0;
    border-bottom: 1px solid #dbe3e9;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
    margin-bottom: -1px;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
    font-size: 15px;
    font-weight: 700;
}

body.single-product div.product .woocommerce-tabs .panel {
    margin: 0;
    padding: 0;
    color: #435466;
    font-size: 15px;
    line-height: 1.85;
}

body.single-product div.product .woocommerce-tabs .panel p {
    margin: 0 0 16px;
    line-height: 1.85;
}

body.single-product div.product .woocommerce-tabs .panel p:last-child {
    margin-bottom: 0;
}

body.single-product div.product .woocommerce-tabs
.woocommerce-Tabs-panel--description h2 {
    margin: 0 0 18px;
    color: #17212b;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

@media (max-width: 767px) {
    body.single-product div.product .woocommerce-tabs {
        margin: 30px 0;
        padding: 22px 18px;
        border-radius: 12px;
    }
}

/* ===========================================
   AVA SINGLE PRODUCT v1.5
   Compact Technical Commerce Layout
   =========================================== */

/* Technical specifications inside purchase summary */
body.single-product div.product .summary .ava-sp-specs {
    clear: none;
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 24px;
    padding: 20px 0;
    border: 0;
    border-top: 1px solid #e2e8ee;
    border-bottom: 1px solid #e2e8ee;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Small technical section heading */
body.single-product .summary .ava-sp-section-heading {
    margin: 0 0 15px;
}

body.single-product .summary .ava-sp-section-heading > span {
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

body.single-product .summary .ava-sp-section-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #17212b;
}

/* Compact specification table */
body.single-product .summary .ava-sp-specs-table {
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 9px;
    background: #fff;
}

body.single-product .summary .ava-sp-specs-row {
    display: grid;
    grid-template-columns: 40% 60%;
    border-bottom: 1px solid #e8edf1;
}

body.single-product .summary .ava-sp-specs-row:last-child {
    border-bottom: none;
}

body.single-product .summary .ava-sp-specs-label,
body.single-product .summary .ava-sp-specs-value {
    min-width: 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
}

body.single-product .summary .ava-sp-specs-label {
    background: #f4f6f8;
    color: #334554;
    font-weight: 700;
}

body.single-product .summary .ava-sp-specs-value {
    background: #fff;
    color: #17212b;
    overflow-wrap: anywhere;
}

/* Purchase controls under specifications */
body.single-product div.product .summary form.cart {
    margin-top: 20px;
}

/* Better spacing and hierarchy */
body.single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 0;
}

body.single-product .summary .product_meta {
    margin-top: 24px;
}

/* On phones keep specification rows compact */
@media (max-width: 640px) {
    body.single-product .summary .ava-sp-specs {
        margin: 18px 0;
        padding: 16px 0;
    }

    body.single-product .summary .ava-sp-specs-row {
        grid-template-columns: 42% 58%;
    }

    body.single-product .summary .ava-sp-specs-label,
    body.single-product .summary .ava-sp-specs-value {
        padding: 10px 9px;
        font-size: 11px;
    }
}

/* ===========================================
   AVA SINGLE PRODUCT v1.6
   Product commerce details
   =========================================== */

/* Stock and product code */

body.single-product .ava-sp-product-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 12px 0 22px;
    padding: 0;
}

body.single-product .ava-sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

body.single-product .ava-sp-stock-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
}

body.single-product .ava-sp-stock--available {
    color: #27844e;
}

body.single-product .ava-sp-stock--backorder {
    color: #b9771b;
}

body.single-product .ava-sp-stock--unavailable {
    color: #ba4141;
}

body.single-product .ava-sp-product-code {
    color: #627080;
    font-size: 12px;
}

body.single-product .ava-sp-product-code strong {
    color: #263643;
    font-weight: 700;
}

/* Custom dimensions inquiry */

body.single-product .ava-sp-size-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    background: #f5f7f9;
}

body.single-product .ava-sp-size-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 9px;
    background: #fff0e6;
    color: #d55411;
    font-size: 19px;
    font-weight: 800;
}

body.single-product .ava-sp-size-link > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.single-product .ava-sp-size-link strong {
    color: #17212b;
    font-size: 13px;
    font-weight: 700;
}

body.single-product .ava-sp-size-link a {
    color: #c75413;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.single-product .ava-sp-size-link a:hover {
    text-decoration: underline;
}

/* Product sharing */

body.single-product .ava-sp-sharing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #e2e8ee;
}

body.single-product .ava-sp-sharing-label {
    color: #627080;
    font-size: 12px;
    font-weight: 700;
}

body.single-product .ava-sp-sharing-actions {
    display: flex;
    gap: 9px;
}

body.single-product .ava-sp-sharing-actions a,
body.single-product .ava-sp-sharing-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid #dde5ec;
    border-radius: 9px;
    background: #f6f8fa;
    color: #334554;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease,
                color .2s ease,
                background .2s ease;
}

body.single-product .ava-sp-sharing-actions a:hover,
body.single-product .ava-sp-sharing-actions button:hover {
    background: #fff2e9;
    color: #d55411;
    border-color: #efb28e;
}

/* Mobile */

@media (max-width: 640px) {
    body.single-product .ava-sp-product-status {
        gap: 8px 12px;
    }

    body.single-product .ava-sp-size-link {
        padding: 13px;
    }

    body.single-product .ava-sp-sharing {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .ava-sp-sharing-actions a,
    body.single-product .ava-sp-sharing-actions button {
        transition: none;
    }
}

/* AVA Single Product v1.6.1 — Compact Purchase Panel */

body.single-product div.product .summary {
    padding: 22px 24px !important;
}

body.single-product .summary .ava-sp-eyebrow {
    margin-bottom: 7px;
}

body.single-product div.product .summary .product_title {
    margin-bottom: 9px;
}

body.single-product div.product .summary .price {
    margin-bottom: 8px;
}

/* Bring availability closer to the price */
body.single-product .summary .ava-sp-product-status {
    margin: 0 0 12px;
    gap: 5px 12px;
    font-size: 12px;
}

/* Compact technical data */
body.single-product .summary .ava-sp-specs {
    margin: 10px 0 12px;
    padding: 12px 0;
}

body.single-product .summary .ava-sp-section-heading {
    margin-bottom: 9px;
}

body.single-product .summary .ava-sp-section-heading > span {
    display: none;
}

body.single-product .summary .ava-sp-section-heading h2 {
    font-size: 15px;
}

body.single-product .summary .ava-sp-specs-label,
body.single-product .summary .ava-sp-specs-value {
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
}

/* Purchase controls */
body.single-product div.product .summary form.cart {
    margin: 12px 0 !important;
    gap: 9px;
}

body.single-product .summary .single_add_to_cart_button {
    min-height: 41px;
    padding: 9px 15px;
}

/* Remove oversized separate enquiry box appearance */
body.single-product .summary .ava-sp-size-link {
    margin: 10px 0;
    padding: 8px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 8px;
}

body.single-product .summary .ava-sp-size-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 6px;
    font-size: 14px;
}

body.single-product .summary .ava-sp-size-link > div {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
}

body.single-product .summary .ava-sp-size-link strong,
body.single-product .summary .ava-sp-size-link a {
    font-size: 12px;
}

/* Reduce category metadata footprint */
body.single-product .summary .product_meta {
    margin: 10px 0 !important;
    padding: 10px 0 !important;
    font-size: 11px;
    line-height: 1.5;
}

/* Compact sharing footer */
body.single-product .summary .ava-sp-sharing {
    margin-top: 10px;
    padding-top: 10px;
}

body.single-product .summary .ava-sp-sharing-actions a,
body.single-product .summary .ava-sp-sharing-actions button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 7px;
    font-size: 14px;
}

@media (max-width: 640px) {
    body.single-product div.product .summary {
        padding: 20px 17px !important;
    }
}

/* =========================================
   AVA Single Product v1.6.2
   Price + Quantity + Add to Cart
   ========================================= */

body.single-product div.product .summary form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 14px 0 !important;
    padding: 14px 0;
}

/* Dynamic product price */
body.single-product .summary .ava-sp-purchase-price {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
    color: #17212b;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

body.single-product .summary .ava-sp-purchase-price .amount {
    font-size: inherit;
    font-weight: 800;
}

body.single-product .summary .ava-sp-purchase-price del {
    margin-right: 7px;
    font-size: 14px;
    color: #84909a;
}

body.single-product .summary .ava-sp-purchase-price ins {
    text-decoration: none;
}

/* Quantity */
body.single-product div.product .summary form.cart .quantity {
    flex: 0 0 auto;
    margin: 0 !important;
}

/* Add to cart */
body.single-product div.product .summary form.cart
.single_add_to_cart_button {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0 !important;
    padding: 10px 15px;
    border-radius: 8px;
}

/* Small screens */
@media (max-width: 640px) {
    body.single-product .summary .ava-sp-purchase-price {
        width: 100%;
        margin-right: 0;
        font-size: 22px;
    }

    body.single-product div.product .summary form.cart {
        gap: 10px;
    }

    body.single-product div.product .summary form.cart
    .single_add_to_cart_button {
        flex: 1 1 auto;
    }
}

/* =========================================
   AVA Single Product — Highlighted Purchase Row
   ========================================= */

body.single-product .summary
form.cart.ava-sp-cart-with-price {
    position: relative;
    padding: 22px 16px 16px !important;
    margin: 16px 0 !important;
    border: 1px solid #dfe6ec;
    border-radius: 11px;
    background: #f5f7f9;
    box-shadow: 0 5px 15px rgba(20, 30, 40, .04);
    overflow: hidden;
}

/* Orange brand accent */
body.single-product .summary
form.cart.ava-sp-cart-with-price::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ef681d;
}

/* Stronger price */
body.single-product .summary
form.cart.ava-sp-cart-with-price
.ava-sp-purchase-price {
    color: #17212b;
    font-size: 25px !important;
    font-weight: 800;
    letter-spacing: -.4px;
}

/* Quantity controls */
body.single-product .summary
form.cart.ava-sp-cart-with-price .quantity {
    border-radius: 7px;
}

/* Purchase button */
body.single-product .summary
form.cart.ava-sp-cart-with-price
.single_add_to_cart_button {
    min-height: 44px;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(239, 104, 29, .16);
}

/* Mobile */
@media (max-width: 640px) {
    body.single-product .summary
    form.cart.ava-sp-cart-with-price {
        padding: 19px 12px 13px !important;
    }

    body.single-product .summary
    form.cart.ava-sp-cart-with-price
    .ava-sp-purchase-price {
        font-size: 23px !important;
    }
}
