/* Final shared desktop header dimensions for all product pages. */
body.single #header-outer,
body.single #header-space {
    display: none !important;
}

@media (min-width: 1000px) {
    body.single .bearspa-product-topbar {
        box-sizing: border-box !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 10px 6.7% !important;
    }

    body.single .bearspa-product-topbar .top-bar2-box {
        height: 26px !important;
        min-height: 26px !important;
    }

    body.single .bearspa-product-topbar li,
    body.single .bearspa-product-topbar a,
    body.single .bearspa-product-topbar span {
        font-size: 12px !important;
        line-height: 12px !important;
        font-weight: 400 !important;
    }

    body.single .bearspa-site-header {
        box-sizing: border-box !important;
        height: 120px !important;
        min-height: 120px !important;
        padding: 19px 6.7% !important;
    }

    body.single .bearspa-site-header .navbar {
        display: grid !important;
        grid-template-columns: 230px minmax(0, 1fr) 150px !important;
        gap: 28px !important;
        width: 100% !important;
        height: 82px !important;
        align-items: center !important;
    }

    body.single .bearspa-site-header .navbar-brand {
        display: flex !important;
        align-items: center !important;
        width: 230px !important;
        max-width: 230px !important;
        height: 81px !important;
    }

    body.single .bearspa-site-header .navbar-brand img {
        width: 200px !important;
        max-width: 200px !important;
        height: 71px !important;
    }

    body.single .bearspa-site-header .navbar-collapse {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.single .bearspa-site-header .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0 !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    body.single .bearspa-site-header .navbar-nav > li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0 3px !important;
        text-align: center !important;
    }

    body.single .bearspa-site-header .nav-link {
        font-size: 9.5px !important;
        line-height: 14px !important;
        font-weight: 400 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    body.single .bearspa-site-header .header-btn {
        display: flex !important;
        justify-content: flex-end !important;
        width: 150px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.single .bearspa-site-header .phone-num,
    body.single .bearspa-site-header .phone-num a {
        display: flex !important;
        width: auto !important;
        height: auto !important;
    }

    body.single .bearspa-site-header .phone-num a {
        color: #222 !important;
        font-size: 14px !important;
        line-height: 22px !important;
        font-weight: 700 !important;
    }
}

@media (min-width: 1400px) {
    body.single .bearspa-site-header .navbar {
        grid-template-columns: 230px minmax(0, 1fr) 170px !important;
        gap: 28px !important;
    }

    body.single .bearspa-site-header .nav-link {
        font-size: 13px !important;
        line-height: 18px !important;
        white-space: nowrap !important;
    }

    body.single .bearspa-site-header .navbar-nav > li {
        flex: 0 1 auto !important;
        padding: 0 !important;
    }

    body.single .bearspa-site-header .header-btn {
        width: 170px !important;
    }

    body.single .bearspa-site-header .phone-num a {
        font-size: 20px !important;
        line-height: 28px !important;
    }
}

/* Remove only the empty gap before the product footer. */
body.single #main > .product {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.single .bearspa-product-footer {
    margin-top: 0 !important;
}

body.single .bearspa-product-topbar .top-bar2-info ul li {
    align-items: center !important;
}

body.single .bearspa-product-topbar .top-bar2-info ul li i {
    flex: 0 0 22px !important;
    width: 22px !important;
    padding-right: 0 !important;
    text-align: center !important;
}

body.single .bearspa-product-topbar .top-bar2-info ul li span,
body.single .bearspa-product-topbar .top-bar2-info ul li a {
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    body.single .bearspa-product-topbar .top-bar2-info ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 18px 34px !important;
        align-items: center !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li {
        display: grid !important;
        grid-template-columns: 28px minmax(0, max-content) !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
}

/* Keep product specification readable at every breakpoint. */
body.single #attribute_table {
    overflow: visible !important;
}

body.single #attribute_table .container {
    box-sizing: border-box !important;
}

body.single #attribute_table .wellis-attribute-table {
    width: 100% !important;
    max-width: 100% !important;
}

body.single #attribute_table .wellis-attribute-table .items {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single #attribute_table .wellis-attribute-table .item {
    display: grid !important;
    grid-template-columns: minmax(170px, 34%) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    box-sizing: border-box !important;
}

body.single #attribute_table .wellis-attribute-table .label,
body.single #attribute_table .wellis-attribute-table .value,
body.single #attribute_table .wellis-attribute-table .value p {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    transform: none !important;
    line-height: 1.45 !important;
}

body.single #attribute_table .wellis-attribute-table .value p {
    margin: 0 !important;
}

@media (min-width: 1000px) and (max-width: 1240px) {
    body.single #attribute_table .container {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.single #attribute_table .product-videos,
    body.single #attribute_table .energy-consumption-image {
        max-width: 620px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 999px) {
    body.single #attribute_table {
        text-align: center !important;
    }

    body.single #attribute_table .container {
        display: block !important;
        width: min(100% - 36px, 680px) !important;
        max-width: 680px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.single #attribute_table .wellis-attribute-table .table-head {
        text-align: center !important;
    }

    body.single #attribute_table .container .col {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.single #attribute_table .wellis-attribute-table .item {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        justify-items: center !important;
        text-align: center !important;
    }

    body.single #attribute_table .wellis-attribute-table .label,
    body.single #attribute_table .wellis-attribute-table .value,
    body.single #attribute_table .wellis-attribute-table .value p {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    body.single #attribute_table .product-videos,
    body.single #attribute_table .energy-consumption-image {
        width: 100% !important;
        max-width: 560px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 520px) {
    body.single #attribute_table .container {
        width: calc(100vw - 36px) !important;
        max-width: 420px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.single #attribute_table .wellis-attribute-table .item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Final mobile spacing pass for product pages. */
@media (max-width: 767px) {
    body.single #lifestyle_gallery,
    body.single #hot_tub_features,
    body.single #attribute_blocks,
    body.single #attribute_table {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    body.single #lifestyle_gallery::before,
    body.single #hot_tub_features::before,
    body.single #attribute_blocks::before,
    body.single #attribute_table::before {
        width: min(100% - 32px, 430px) !important;
        margin: 0 auto 18px !important;
        font-size: clamp(26px, 7vw, 32px) !important;
        line-height: 1.14 !important;
        text-align: center !important;
    }

    body.single .woocommerce-breadcrumb,
    body.single .gallery-inner,
    body.single .summary.entry-summary,
    body.single #product_menu .container,
    body.single #hot_tub_features .container,
    body.single #attribute_blocks .attribute-block,
    body.single #attribute_table .container,
    body.single #guarantee {
        width: min(100% - 32px, 430px) !important;
        max-width: 430px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    body.single .summary.entry-summary,
    body.single #hot_tub_features .container,
    body.single #attribute_blocks .attribute-block .inner,
    body.single #attribute_table .container {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    body.single .summary.entry-summary h1,
    body.single .summary.entry-summary .subtitle,
    body.single #attribute_blocks .attribute-block h3,
    body.single #attribute_table h3 {
        text-align: center !important;
    }

    body.single .summary.entry-summary h1,
    body.single #attribute_blocks .attribute-block h3,
    body.single #attribute_table h3 {
        font-size: clamp(25px, 7vw, 31px) !important;
        line-height: 1.15 !important;
        margin-bottom: 14px !important;
    }

    body.single .summary.entry-summary p,
    body.single #attribute_blocks .attribute-block .desc,
    body.single #attribute_blocks .attribute-block p,
    body.single #attribute_table .wellis-attribute-table .label,
    body.single #attribute_table .wellis-attribute-table .value,
    body.single #attribute_table .wellis-attribute-table .value p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.single #product_menu {
        margin-top: 18px !important;
        padding: 8px 0 !important;
    }

    body.single #product_menu .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        border-radius: 22px !important;
    }

    body.single #product_menu .left,
    body.single #product_menu .right {
        justify-content: center !important;
        text-align: center !important;
    }

    body.single #product_menu .right {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px 18px !important;
    }

    body.single #product_menu .right a {
        min-height: 30px !important;
        line-height: 1.2 !important;
    }

    body.single #lifestyle_gallery .item {
        width: min(86vw, 360px) !important;
        margin: 8px auto !important;
        padding: 8px !important;
    }

    body.single #lifestyle_gallery .item img {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    body.single #hot_tub_features .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    body.single #hot_tub_features .stats .item {
        min-height: 78px !important;
        padding: 12px 8px !important;
        border-radius: 14px !important;
    }

    body.single #hot_tub_features .stats .item strong {
        font-size: 28px !important;
    }

    body.single #hot_tub_features .stats .item small {
        font-size: 12px !important;
    }

    body.single #hot_tub_features .hot-tub {
        min-height: 0 !important;
    }

    body.single #attribute_blocks .attribute-block {
        margin-bottom: 24px !important;
    }

    body.single #attribute_blocks .attribute-block .inner,
    body.single #attribute_blocks .attribute-block.compact .inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    body.single #attribute_blocks .attribute-block:nth-child(even) .img-col,
    body.single #attribute_blocks .attribute-block:nth-child(even) .text-col {
        order: initial !important;
    }

    body.single #attribute_blocks .attribute-block .img-col {
        order: 1 !important;
        padding: 0 !important;
    }

    body.single #attribute_blocks .attribute-block .text-col {
        order: 2 !important;
        padding: 18px 0 0 !important;
    }

    body.single #attribute_blocks .attribute-block .img-wrapper {
        width: 100% !important;
        margin: 0 !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 16px !important;
    }

    body.single #attribute_blocks .attribute-block .content {
        padding: 0 !important;
        align-items: center !important;
    }

    body.single #guarantee {
        margin-top: 28px !important;
        margin-bottom: 32px !important;
    }

    body.single #guarantee .inner {
        border-radius: 22px !important;
        min-height: 360px !important;
        padding: 26px 18px !important;
        text-align: center !important;
    }

    body.single #attribute_table .container {
        display: block !important;
        padding: 20px !important;
    }

    body.single #attribute_table .wellis-attribute-table .table-head {
        margin-top: 16px !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    body.single #attribute_table .wellis-attribute-table .item {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 13px 0 !important;
        justify-items: center !important;
    }
}

@media (max-width: 420px) {
    body.single .woocommerce-breadcrumb,
    body.single .gallery-inner,
    body.single .summary.entry-summary,
    body.single #product_menu .container,
    body.single #hot_tub_features .container,
    body.single #attribute_blocks .attribute-block,
    body.single #attribute_table .container,
    body.single #guarantee {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
    }

    body.single .summary.entry-summary,
    body.single #hot_tub_features .container,
    body.single #attribute_blocks .attribute-block .inner,
    body.single #attribute_table .container {
        padding: 18px !important;
    }
}

/* Mobile polish: equal gutters, readable product text and aligned top-bar icons. */
@media (max-width: 767px) {
    body.single .bearspa-product-topbar {
        padding: 10px 14px !important;
    }

    body.single .bearspa-product-topbar .top-bar2-box,
    body.single .bearspa-product-topbar .top-bar2-info,
    body.single .bearspa-product-topbar .top-bar2-info ul {
        width: 100% !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 22px !important;
        row-gap: 12px !important;
        align-items: center !important;
        justify-items: stretch !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li {
        display: grid !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        align-items: center !important;
        justify-content: start !important;
        justify-items: start !important;
        gap: 8px !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li i {
        width: 24px !important;
        min-width: 24px !important;
        padding-right: 0 !important;
        text-align: center !important;
        justify-self: center !important;
        margin: 0 !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li span,
    body.single .bearspa-product-topbar .top-bar2-info ul li a {
        display: block !important;
        min-width: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    body.single .summary.entry-summary {
        text-align: left !important;
    }

    body.single .summary.entry-summary h1,
    body.single .summary.entry-summary .subtitle,
    body.single .summary.entry-summary .energy-badge,
    body.single .summary.entry-summary .seats {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.single .summary.entry-summary .woocommerce-product-details__short-description,
    body.single .summary.entry-summary .woocommerce-product-details__short-description p {
        text-align: left !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        line-height: 1.6 !important;
    }

    body.single .summary.entry-summary .woocommerce-product-details__short-description strong,
    body.single .summary.entry-summary .woocommerce-product-details__short-description b {
        display: inline !important;
    }

    body.single #attribute_table .container {
        padding: 22px !important;
        text-align: left !important;
    }

    body.single #attribute_table h3 {
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    body.single #attribute_table .wellis-attribute-table {
        text-align: left !important;
    }

    body.single #attribute_table .wellis-attribute-table .table-head {
        margin: 18px 0 12px !important;
        text-align: center !important;
    }

    body.single #attribute_table .wellis-attribute-table .item {
        justify-items: stretch !important;
        text-align: left !important;
        gap: 6px !important;
        padding: 14px 0 !important;
    }

    body.single #attribute_table .wellis-attribute-table .label {
        text-align: left !important;
        font-weight: 700 !important;
        color: #30302f !important;
        line-height: 1.35 !important;
        padding: 0 !important;
    }

    body.single #attribute_table .wellis-attribute-table .value,
    body.single #attribute_table .wellis-attribute-table .value p {
        text-align: left !important;
        width: 100% !important;
        line-height: 1.55 !important;
        padding: 0 !important;
    }
}

@media (max-width: 420px) {
    body.single .bearspa-product-topbar .top-bar2-info ul {
        column-gap: 16px !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li {
        grid-template-columns: 22px minmax(0, 1fr) !important;
        gap: 7px !important;
    }

    body.single .bearspa-product-topbar .top-bar2-info ul li i {
        width: 22px !important;
        min-width: 22px !important;
    }
}

/* Final mobile specification spacing: keep the card centered and its content away from edges. */
@media (max-width: 767px) {
    body.single #attribute_table {
        text-align: center !important;
    }

    body.single #attribute_table .container {
        width: min(calc(100vw - 34px), 430px) !important;
        max-width: min(calc(100vw - 34px), 430px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 24px 18px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    body.single #attribute_table .wellis-attribute-table {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    body.single #attribute_table .wellis-attribute-table .table-head {
        width: 100% !important;
        max-width: 270px !important;
        margin: 20px auto 14px !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    body.single #attribute_table .wellis-attribute-table .items {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single #attribute_table .wellis-attribute-table .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px 0 !important;
        box-sizing: border-box !important;
        justify-items: stretch !important;
    }

    body.single #attribute_table .wellis-attribute-table .label,
    body.single #attribute_table .wellis-attribute-table .value,
    body.single #attribute_table .wellis-attribute-table .value p {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    body.single #attribute_table .container {
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.single #attribute_table .wellis-attribute-table {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Center the actual specification table wrapper on narrow product pages. */
@media (max-width: 767px) {
    body.single #attribute_table .container .col {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.single #attribute_table .wellis-attribute-table {
        width: calc(100% - 54px) !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.single #attribute_table .wellis-attribute-table .table-head {
        width: 100% !important;
        max-width: 270px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 380px) {
    body.single #attribute_table .wellis-attribute-table {
        width: calc(100% - 42px) !important;
    }
}

/* Mobile spacing below the rounded product summary card. */
@media (max-width: 767px) {
    body.single .summary.entry-summary {
        margin-bottom: 32px !important;
    }
}

/* Cream spacer between the product summary card and the gallery title on mobile. */
@media (max-width: 767px) {
    body.single #product_menu {
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: #ffffff !important;
    }

    body.single #lifestyle_gallery {
        margin-top: 0 !important;
        padding-top: 34px !important;
        background: #ffffff !important;
    }
}

/* The visible cream strip directly below the rounded product description card. */
@media (max-width: 767px) {
    body.single #main > .product > .product-inner {
        padding: 0 !important;
        background: #f7f6f3 !important;
        border-bottom: 76px solid #f7f6f3 !important;
        box-sizing: content-box !important;
    }

    body.single #lifestyle_gallery {
        margin-top: 0 !important;
        background: #ffffff !important;
    }

    body.single .gallery-inner {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.single .summary.entry-summary {
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 34px !important;
    }

    body.single .gallery-inner::after {
        display: none !important;
        content: none !important;
    }

    body.single .summary.entry-summary::after {
        display: none !important;
        content: none !important;
    }
}
