:root {
    --black: #000000;
    --primary-color: #12142F;
    --white: #ffffff;
    --cyan-color: #14BBC6;
    --grey: #75767D;
    --outfit: "Outfit", sans-serif;
    --inter: "Inter", sans-serif;
    --roboto: "Roboto", sans-serif;
    --DM-SANS: "DM Sans", sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.image-on-product-section {
    display: grid;
    grid-template-columns: 380px auto;
    align-items: start;
    background-color: #FCFCFC;
    overflow: hidden;
}

.leftside-tabs-section {
    height: 100%;
    position: relative;
}

.leftside-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.leftside-tabs-bar-icon img {
    cursor: pointer;
}

.leftside-tabs-link-icon img {
    cursor: pointer;
}

.leftside-tabs-section .tab-buttons {
    display: flex;
}

.leftside-tabs-section .tab-buttons button {
    padding: 8px 15px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 12px;
    transition: background 0.3s;
    font-family: var(--outfit);
    font-weight: 400;
    border-radius: 100px;
    text-transform: capitalize;
    color: #12142F;
}

.leftside-tabs-section .tab-buttons button.active {
    background: #DDDEE4;
    font-weight: 500;
}

.leftside-tabs-section .tab-content {
    padding: 20px 15px 40px;
    max-height: 85vh;
    overflow: auto;
}

.image-on-product-section .product-card .card-image {
    height: 150px;
    padding: 10px;
}

.image-on-product-section .product-card .btn-primary {
    padding: 6px 12px;
    font-size: 12px;
}

.image-on-product-section .product-card .product-price {
    font-size: 12px;
}

/* width */
.leftside-tabs-section .tab-content::-webkit-scrollbar {
    width: 5px;
}

/* Track */
.leftside-tabs-section .tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.leftside-tabs-section .tab-content::-webkit-scrollbar-thumb {
    background: #DDDEE4;
}

.leftside-tabs-section .tab-content>div {
    display: none;
}

.leftside-tabs-section .tab-content .active-tab,
.leftside-tabs-section .tab-content .active {
    display: block;
}


.find-inspiration-inner-card {
    box-shadow: 0px 0px 5px rgba(166, 178, 184, 0.26);
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 112px;
    gap: 10px;
}

.find-inspiration-inner-card p {
    font-size: 12px;
    font-family: 'Outfit';
    font-weight: 300;
    letter-spacing: 0px;
}

.find-inspiration-inner-card a {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-family: 'Outfit';
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 100px;
    line-height: normal;
    margin-top: 6px;
}

.find-inspiration-inner-card+.find-inspiration-inner-card {
    margin-top: 10px;
}

.sort-by-wrapper {
    padding-bottom: 10px;
}

.sort-by-wrapper label {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit';
}

.sort-by-wrapper select {
    border: none;
    background-color: transparent;
    font-size: 12px;
    font-weight: 300;
    font-family: 'Outfit';
}

.FI-card-image {
    width: 112px;
    height: 112px;
}

.FI-card-image img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.product-catalog-tab-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
}

.product-catalog-tab-card .PC-card-price h4 {
    font-size: 11px;
    font-family: 'Outfit';
    font-weight: 500;
    margin-top: 8px;
}

.product-catalog-tab-card .PC-card-image {
    margin-bottom: 20px;
    width: 100%;
    height: 150px;
    border-radius: 10px;
    padding: 10px;
}

.product-catalog-tab-card .PC-card-image img {
    vertical-align: middle;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.search-prompt-sec {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 2rem;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin-inline: auto;
    background-color: #fff;
    width: 100%;
}

.leftside-tabs-footer {
    padding: 15px;
    background-color: #FCFCFC;
    box-shadow: 0px -5px 5px rgba(215, 218, 220, 0.07);
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 1;
}


.search-prompt-sec input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0 15px;
    flex: 1;
    font-family: 'roboto';
}

.search-prompt-sec .play-button {
    background: #DDDEE4;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 38px;
    height: 38px;
}

.search-prompt-sec .play-button img {
    vertical-align: middle;
}

.tab-content-inner-tabs {
    padding-inline: 5px;
    margin-bottom: 20px;
}

.tab-content-inner-tabs ul li h3 {
    width: max-content;
}

.tab-content-inner-tabs ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    list-style: none;
    margin-top: 15px;
    overflow: auto;
}

.tab-content-inner-tabs ul li img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    min-width: 30px;
    margin-bottom: 10px;
}

.tab-content-inner-tabs ul li.tab-active svg path {
    fill: #14BBC6;
    stroke: #14BBC6;
}

.tab-content-inner-tabs ul li h3 {
    font-size: 11px;
    font-family: 'Outfit';
    font-weight: 500;
    color: #9E9FAA;
    margin-inline: auto;
}

.tab-content-inner-tabs ul li.tab-active h3 {
    color: #14BBC6;
}

.tab-content-inner-tabs ul li a {
    text-decoration: none;
    color: #9E9FAA;
}



/* rightside-image-section css */

.rightside-image-section {
    width: 100%;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex-direction: column;
    position: relative;
}

.rightside-image-section .top-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
}

.rightside-image-section .tabs {
    background: #fff;
    border-radius: 100px;
    /* display: flex; */
    overflow: hidden;
    box-shadow: 0 1px 8px rgb(0 0 0 / 11%);
    padding: 3px;
    display: none;
}

.rightside-image-section .tab.active {
    background: #DDDEE4;
    color: #12142F;
    box-shadow: none;
    border-radius: 100px;
}

.rightside-image-section .tab {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #75767D;
    font-size: 14px;
}

.rightside-image-section .save-button {
    position: absolute;
    right: 2rem;
    padding: 0.54rem 1.2rem;
    border-radius: 1rem;
    background: #12142f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Outfit';
}

.rightside-image-section .editor-controls {
    margin: 1rem 0;
}

.rightside-image-section .image-preview {
    margin-block: auto;
}

.rightside-image-section .editor-controls .icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    margin: 0 0.5rem;
    cursor: pointer;
    color: #555;
}

.rightside-image-section .image-preview img {
    max-width: 300px;
    border-radius: 10px;
    margin: 1rem 0;
}

.image-preview-gallery {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 100px;
    gap: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.image-preview-gallery img {
    vertical-align: middle;
    cursor: pointer;
}

.rightside-image-section .prompt-section {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 2rem;
    padding: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin-inline: auto;
    background-color: #fff;
    width: 100%;
}

.rightside-image-section .prompt-section input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0 20px 0 10px;
    flex: 1 1 0%;
    font-size: 14px;
    font-family: 'Roboto';
}

.prompt-input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt-input-wrapper .file-upload-btn {
    border: none;
    background: transparent;
    padding-inline: 12px 0;
}

.rightside-image-section .play-button {
    background: #DDDEE4;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.rightside-image-section .play-button img {
    vertical-align: middle;
}

.loader {
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--primary-color);
    -webkit-mask: repeating-conic-gradient(#0000 0deg, #000 1deg 70deg, #0000 71deg 90deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: l5 1s infinite;
    margin: 20px auto;
}

@keyframes l5 {
    to {
        transform: rotate(.5turn)
    }
}


.image-function-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-block: 30px;
}

.image-function-btn .try-again {
    color: var(--cyan-color);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.image-function-btn .try-again svg {
    vertical-align: bottom;
}

.image-function-btn button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit';
}

/* Aug 5 */
.session-image-gallery {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 40px;
    overflow: hidden;
}

.single-product-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
}

/* The editor shell only needs the purchasable product/designer area. */
.single-product-content .woocommerce-tabs,
.single-product-content .related,
.single-product-content .upsells {
    display: none !important;
}

/* Let an inline Fancy Product Designer calculate its own natural dimensions. */
body.fancy-product .product-tab-data {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

body.fancy-product .single-product-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-height: 100%;
    padding: 24px;
    overflow: visible;
}

body.fancy-product:not(.fpd-modal-mode-active) .single-product-content .summary.entry-summary {
    display: none;
}

body.fancy-product:not(.fpd-modal-mode-active) .single-product-content .woocommerce-product-gallery {
    display: none;
}

body.fancy-product .single-product-content .fpd-container,
body.fancy-product .single-product-content fancy-product-designer,
body.fancy-product .single-product-content [id^="fancy-product-designer-"] {
    width: 100% !important;
    max-width: none !important;
    min-height: 600px;
    margin: 0 auto !important;
}

/*
 * WooCommerce product layout inside the ARTFOX editor shell.
 * A regular product, and an FPD product configured to open in a modal,
 * need the standard gallery/summary instead of the full-width designer stage.
 */
body:not(.fancy-product) .product-tab-data,
body.fancy-product.fpd-modal-mode-active .product-tab-data {
    flex: 1;
    min-height: 0;
}

body:not(.fancy-product) .single-product-content,
body.fancy-product.fpd-modal-mode-active .single-product-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    height: 100%;
    padding: 32px;
    overflow: auto;
    text-align: left;
}

body:not(.fancy-product) .single-product-content div.product,
body.fancy-product.fpd-modal-mode-active .single-product-content div.product {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    width: min(1100px, 100%);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 42px);
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(18, 20, 47, 0.08);
    max-height: calc(100vh - 110px);
    overflow: hidden;
}

body:not(.fancy-product) .single-product-content div.product .woocommerce-product-gallery,
body.fancy-product.fpd-modal-mode-active .single-product-content div.product .woocommerce-product-gallery,
body:not(.fancy-product) .single-product-content div.product .summary,
body.fancy-product.fpd-modal-mode-active .single-product-content div.product .summary {
    float: none;
    width: 100%;
    margin: 0;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery {
    position: relative;
    height: min(700px, calc(100vh - 170px));
    min-height: 420px;
    padding: clamp(24px, 4vw, 48px);
    background: #f7f8fb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery img,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 290px);
    object-fit: contain;
}

/* WooCommerce already initializes FlexSlider; keep its gallery within one screen. */
body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-viewport,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-viewport {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-viewport a,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-viewport a {
    height: 100%;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-viewport img,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-viewport img {
    height: 100%;
    object-fit: contain;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-control-thumbs,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
    padding: 2px 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c7c9d1 transparent;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-control-thumbs li,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-control-thumbs li {
    float: none;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 5px;
    background: #fff;
    border: 1px solid #e7e9ef;
    border-radius: 10px;
    scroll-snap-align: start;
    cursor: pointer;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-control-thumbs img,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 6px;
    object-fit: contain;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease;
}

body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body:not(.fancy-product) .single-product-content .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery .flex-control-thumbs img:hover {
    opacity: 1;
}

body:not(.fancy-product) .single-product-content .summary,
body.fancy-product.fpd-modal-mode-active .single-product-content .summary {
    color: #12142f;
    font-family: 'Outfit', sans-serif;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

body:not(.fancy-product) .single-product-content .product_title,
body.fancy-product.fpd-modal-mode-active .single-product-content .product_title {
    margin: 0 0 10px;
    color: #12142f;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body:not(.fancy-product) .single-product-content .summary > .price,
body.fancy-product.fpd-modal-mode-active .single-product-content .summary > .price {
    margin: 0 0 24px;
    color: #14bbc6;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 600;
}

body:not(.fancy-product) .single-product-content form.cart,
body.fancy-product.fpd-modal-mode-active .single-product-content form.cart {
    margin: 24px 0;
}

body:not(.fancy-product) .single-product-content table.variations,
body.fancy-product.fpd-modal-mode-active .single-product-content table.variations {
    width: 100%;
    margin: 0 0 20px;
    border: 0;
}

body:not(.fancy-product) .single-product-content table.variations th,
body:not(.fancy-product) .single-product-content table.variations td,
body.fancy-product.fpd-modal-mode-active .single-product-content table.variations th,
body.fancy-product.fpd-modal-mode-active .single-product-content table.variations td {
    padding: 6px 0 10px;
    border: 0;
    text-align: left;
}

body:not(.fancy-product) .single-product-content select,
body.fancy-product.fpd-modal-mode-active .single-product-content select {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 16px;
    color: #12142f;
    background-color: #f7f8fb;
    border: 1px solid #dddee4;
    border-radius: 12px;
    font: inherit;
}

body:not(.fancy-product) .single-product-content .quantity .qty,
body.fancy-product.fpd-modal-mode-active .single-product-content .quantity .qty {
    width: 72px;
    min-height: 50px;
    padding: 0 10px;
    border: 1px solid #dddee4;
    border-radius: 25px;
    text-align: center;
}

body:not(.fancy-product) .single-product-content button.single_add_to_cart_button,
body.fancy-product.fpd-modal-mode-active .single-product-content button.single_add_to_cart_button,
body.fancy-product .single-product-content #fpd-start-customizing-button {
    min-height: 50px;
    padding: 14px 28px !important;
    color: #fff !important;
    background: #12142f !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body:not(.fancy-product) .single-product-content button.single_add_to_cart_button:hover,
body.fancy-product.fpd-modal-mode-active .single-product-content button.single_add_to_cart_button:hover,
body.fancy-product .single-product-content #fpd-start-customizing-button:hover {
    color: #fff !important;
    background: #14bbc6 !important;
    transform: translateY(-2px);
}

body.fancy-product.fpd-modal-mode-active .single-product-content #fpd-start-customizing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px 14px 0;
}

body:not(.fancy-product) .single-product-content .product_meta,
body.fancy-product.fpd-modal-mode-active .single-product-content .product_meta {
    margin-top: 24px;
    padding-top: 20px;
    color: #75767d;
    border-top: 1px solid #eef0f5;
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:not(.fancy-product) .single-product-content .product_meta a,
body.fancy-product.fpd-modal-mode-active .single-product-content .product_meta a,
body:not(.fancy-product) .single-product-content .reset_variations,
body.fancy-product.fpd-modal-mode-active .single-product-content .reset_variations {
    color: #14bbc6;
}

/*
 * FPD 6 may omit its modal body class until the designer is ready. Keep the
 * WooCommerce card deterministic whenever a Fancy Product has a summary.
 */
body.fancy-product .single-product-content div.product {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    width: min(1100px, 100%);
    min-height: auto;
    max-height: calc(100vh - 110px);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 42px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(18, 20, 47, .08);
}

body:not(.fancy-product) .single-product-content div.product .woocommerce-product-gallery,
body.fancy-product .single-product-content div.product .woocommerce-product-gallery {
    grid-column: 1;
    grid-row: 1;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body:not(.fancy-product) .single-product-content div.product .summary,
body.fancy-product .single-product-content div.product .summary {
    grid-column: 2;
    grid-row: 1;
    display: block;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    overflow-x: hidden;
}

body.fancy-product .single-product-content .woocommerce-product-gallery {
    display: flex;
    position: relative;
    height: min(700px, calc(100vh - 170px));
    min-height: 420px;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
    flex-direction: column;
    background: #f7f8fb;
    border-radius: 20px;
}

body.fancy-product .single-product-content .summary {
    color: #12142f;
    font-family: 'Outfit', sans-serif;
    max-height: calc(100vh - 170px);
    padding-right: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

body.fancy-product .single-product-content .product_meta {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/*
 * Chamevo v2 integration.
 * The editor is a Shadow DOM web component, so its supported CSS variables
 * are set on the host instead of targeting the retired FPD internals.
 */
body.artfox-chamevo-product cv-customizer,
body.artfox-chamevo-product .artfox-chamevo {
    --cv-primary: #14bbc6;
    --cv-secondary: #12142f;
    --cv-bg: #ffffff;
    --cv-bg-secondary: #f7f8fb;
    --cv-bg-tertiary: #eef0f5;
    --cv-canvas-bg: #f7f8fb;
    --cv-text: #12142f;
    --cv-text-secondary: #75767d;
    --cv-on-primary: #ffffff;
    --cv-border: #eef0f5;
    --cv-border-interactive: #dddee4;
    --cv-border-hover: #14bbc6;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: min(720px, calc(100vh - 110px));
    margin: 0 auto;
    color: #12142f;
    font-family: 'Outfit', sans-serif;
}

/* Page-mode customizer: use all available space without the old FPD layout. */
body.artfox-chamevo-product .single-product-content:has(cv-customizer) {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    overflow: auto;
    transform: none;
}

body.artfox-chamevo-product .single-product-content:has(cv-customizer) div.product {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Chamevo keeps this legacy class as its default WooCommerce launch button. */
body.artfox-chamevo-product .single-product-content .fpd-secondary-btn,
body.artfox-chamevo-product .single-product-content .chamevo-customize-button,
body.artfox-chamevo-product .single-product-content [data-chamevo-action="customize"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0 10px 14px 0;
    padding: 14px 28px !important;
    color: #fff !important;
    background: #12142f !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body.artfox-chamevo-product .single-product-content .fpd-secondary-btn:hover,
body.artfox-chamevo-product .single-product-content .chamevo-customize-button:hover,
body.artfox-chamevo-product .single-product-content [data-chamevo-action="customize"]:hover {
    color: #fff !important;
    background: #14bbc6 !important;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    body.artfox-chamevo-product cv-customizer,
    body.artfox-chamevo-product .artfox-chamevo {
        min-height: calc(100dvh - 76px);
    }

    body.artfox-chamevo-product .single-product-content:has(cv-customizer) {
        padding: 10px;
    }
}

/* Disable the WooCommerce magnifier/lightbox trigger in this editor shell. */
.single-product-content .woocommerce-product-gallery__trigger,
.single-product-content .zoomImg {
    display: none !important;
}

/* Keep thumbnail navigation usable without a heavy native scrollbar. */
.single-product-content .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0 !important;
    padding: 2px 0 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.single-product-content .woocommerce-product-gallery .flex-control-thumbs li {
    clear: none !important;
    float: none !important;
    flex: 0 0 68px;
    width: 68px !important;
    height: 68px;
    margin: 0 !important;
    padding: 5px;
    background: #fff;
    border: 1px solid #e7e9ef;
    border-radius: 10px;
}

.single-product-content .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

/* Fit every main product image by its limiting side, regardless of FPD mode. */
.single-product-content .woocommerce-product-gallery .flex-viewport {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
.single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
.single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image > a {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.single-product-content .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center center;
}

/* Fallback while FlexSlider is still being initialized. */
.single-product-content .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.single-product-content .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child,
.single-product-content .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child > a {
    width: 100%;
    height: 100%;
}

.single-product-content .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* The gallery already carries the wishlist control; avoid a duplicate in summary. */
.single-product-content .summary .alg-wc-wl-btn-wrapper,
.single-product-content .summary .alg-wc-wl-toggle-btn,
.single-product-content .summary .alg-wc-wl-btn,
.single-product-content .summary .alg-wc-wl-btn2 {
    display: none !important;
}

/* Keep one consistent price: the primary turquoise price below the title. */
.single-product-content .summary .woocommerce-variation-price {
    display: none !important;
}

.single-product-content .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body:not(.fancy-product) .single-product-content div.product::before,
body:not(.fancy-product) .single-product-content div.product::after,
body.fancy-product.fpd-modal-mode-active .single-product-content div.product::before,
body.fancy-product.fpd-modal-mode-active .single-product-content div.product::after {
    display: none;
}

@media (max-width: 900px) {
    body:not(.fancy-product) .single-product-content,
    body.fancy-product.fpd-modal-mode-active .single-product-content {
        padding: 20px;
    }

    body:not(.fancy-product) .single-product-content div.product,
    body.fancy-product.fpd-modal-mode-active .single-product-content div.product {
        grid-template-columns: 1fr;
        align-items: start;
        max-height: none;
        overflow: visible;
    }

    body.fancy-product .single-product-content div.product {
        grid-template-columns: 1fr;
        align-items: start;
        max-height: none;
        overflow: visible;
    }

    body:not(.fancy-product) .single-product-content div.product .woocommerce-product-gallery,
    body.fancy-product .single-product-content div.product .woocommerce-product-gallery,
    body:not(.fancy-product) .single-product-content div.product .summary,
    body.fancy-product .single-product-content div.product .summary {
        grid-column: 1;
        grid-row: auto;
    }

    body:not(.fancy-product) .single-product-content .woocommerce-product-gallery,
    body.fancy-product.fpd-modal-mode-active .single-product-content .woocommerce-product-gallery {
        height: auto;
        min-height: 340px;
    }

    body:not(.fancy-product) .single-product-content .summary,
    body.fancy-product.fpd-modal-mode-active .single-product-content .summary {
        max-height: none;
        overflow: visible;
    }
}

.tab-content-inner-tabs.product-catalog-tab-inner-tabs {
    padding-bottom: 12px;
}

/* width */
.tab-content-inner-tabs.product-catalog-tab-inner-tabs::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

/* Track */
.tab-content-inner-tabs.product-catalog-tab-inner-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.tab-content-inner-tabs.product-catalog-tab-inner-tabs::-webkit-scrollbar-thumb {
    background: #dddee4;
}

/* 11 aug */
.custom-popup {
    display: none;
    /* Hide the pop-up by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    overflow: auto;
}

.popup-content.modal-inner-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 0px 0 30px 0;
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-radius: 8px;
}

.start-with-text-modal {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.start-with-text-modal:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
    opacity: .5;

}

.start-with-text-modal-inner {
    padding: 20px;
    background-color: #FCFCFC;
    max-width: 370px;
    text-align: center;
    box-shadow: 0px 4px 16px 0px #00000014;
    border-radius: 20px;
}

.start-with-text-modal-inner .modal-inner-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-inner-content h2 {
    margin-bottom: 24px;
    font-family: var(--outfit);
    font-size: 20px;
    font-weight: 300;
}

.modal-btn-primary {
    padding: 12px 30px;
    border: none;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--outfit);
    font-weight: 500;
    transition: all .3s ease;
}

.modal-btn-primary:hover {
    background-color: var(--cyan-color);
    border: 2px solid var(--cyan-color);
}


.modal-btn-secondary {
    padding: 12px 30px;
    border: none;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--outfit);
    font-weight: 500;
    transition: all .3s ease;
}

.modal-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cart-wrapper {
    padding-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-wrapper .cart-icon.editor_menu {
    position: relative;
}

.cart-wrapper .cart-icon.editor_menu .cart-count {
    width: 18px;
    height: 18px;
    background-color: #14BBC6;
    min-width: 18px;
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 100px;
    text-align: center;
    line-height: 16px;
    color: #fff;
    border: 1px solid #fff;
    font-size: 10px;
    font-family: 'Inter';
    min-width: 18px;
}

.cart-wrapper .cart-text {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 300;
    font-family: var(--outfit);
    cursor: pointer;
}

.ai-options .button-group button.active {
    background-color: #12142f;
    color: #fff;
}

@media (max-width: 768px) {
    .cart-wrapper {
        padding-bottom: 20px;
    }

    .menu-sidebar .btn-primary {
        margin-block: 50px 20px;
    }
}

/* ------------- */
.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: block !important;
}

/* .woocommerce-form-login */
.woocommerce-account input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
}

/* Catalog Loader Animation */
.catalog-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.catalog-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #14BBC6;
    border-radius: 50%;
    animation: catalog-spin 1s linear infinite;
}

.catalog-loader-text {
    margin-top: 20px;
    color: var(--grey);
    font-family: var(--outfit);
    font-size: 16px;
    font-weight: 400;
    animation: catalog-pulse 1.5s ease-in-out infinite;
}

@keyframes catalog-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes catalog-pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}
