/* FrediTech shop: native WooCommerce behaviour, scoped storefront presentation. */
body.freditech-modern .ft-commerce-main { padding: 22px 0 70px; background: #f6f8fb; color: #172033; }
.ft-commerce-shell { min-width: 0; }
.ft-commerce-main .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 13px; color: #526075; }
body.freditech-modern .ft-commerce-main .woocommerce-breadcrumb a { color: #006b91; text-decoration: underline; }
.ft-shop-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin: 0 0 30px; overflow: hidden; border: 1px solid #d5dce5; border-radius: 24px; background: #fff; }
.ft-shop-hero__copy { padding: clamp(24px, 4vw, 50px); }
body.freditech-modern .ft-shop-hero h1 { margin: 0 0 18px; color: #0b172b; font-size: clamp(31px, 3.6vw, 52px); font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
body.freditech-modern .ft-shop-eyebrow { margin-bottom: 14px; color: #006b91; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.ft-shop-hero__copy > p:not(.ft-shop-eyebrow) { max-width: 430px; margin-bottom: 24px; color: #526075; font-size: 17px; }
body.freditech-modern .ft-shop-hero .ft-button { min-height: 48px; background: #0b172b; color: #fff; text-decoration: none; }
body.freditech-modern .ft-shop-hero__image { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.ft-shop-hero--compact { grid-template-columns: 1fr; }
.ft-shop-hero--compact .ft-shop-hero__copy { padding: 30px; }
.ft-shop-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding: 0 0 24px; border-bottom: 1px solid #cbd5e1; }
.ft-shop-search { flex: 1 1 350px; max-width: 510px; margin: 0; }
.ft-shop-search label { display: block; margin: 0 0 7px; color: #172033; font-size: 14px; font-weight: 750; }
.ft-shop-search > div { display: flex; gap: 8px; }
body.freditech-modern .ft-shop-search input[type="search"] { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #718197; border-radius: 10px; background: #fff; color: #172033; font-size: 16px; }
body.freditech-modern .ft-shop-search button { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 10px; background: #0b172b; color: #fff; font-size: 15px; font-weight: 750; }
.ft-shop-categories { display: flex; flex-wrap: wrap; gap: 8px; }
body.freditech-modern .ft-shop-categories a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 16px; border: 1px solid #718197; border-radius: 24px; background: #fff; color: #26354b; font-size: 14px; font-weight: 700; text-decoration: none; }
body.freditech-modern .ft-shop-categories a[aria-current], body.freditech-modern .ft-shop-categories a:hover { color: #fff; background: #0b172b; border-color: #0b172b; }
.ft-shop-products { padding-top: 24px; scroll-margin-top: 145px; }
.ft-shop-products .woocommerce-products-header:empty { display: none; }
body.freditech-modern .ft-commerce-main .woocommerce-result-count { margin: 10px 15px 20px 0; color: #40516a; font-size: 14px; }
body.freditech-modern .ft-commerce-main .woocommerce-ordering { margin: 0 0 24px; }
body.freditech-modern .ft-commerce-main .woocommerce-ordering select { width: 100%; min-height: 48px; padding: 10px 38px 10px 14px; border: 1px solid #718197; border-radius: 10px; background-color: #fff; color: #172033; font-family: inherit; font-size: 16px; }
body.freditech-modern .ft-commerce-main ul.products { display: grid; clear: both; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; width: 100%; padding: 0; margin: 0 0 32px; list-style: none; }
body.freditech-modern .ft-commerce-main ul.products::before, body.freditech-modern .ft-commerce-main ul.products::after { display: none; }
body.freditech-modern .ft-commerce-main ul.products li.product { float: none; display: flex; flex-direction: column; width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 14px; border: 1px solid #ccd5e0; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 3px 12px rgba(15,23,42,.035); }
body.freditech-modern .ft-commerce-main ul.products li.product a { color: #172033; text-decoration: none; }
body.freditech-modern .ft-commerce-main ul.products li.product > a[href*="#respond"],
body.freditech-modern .ft-commerce-main ul.products li.product .ehi-star-rating,
body.freditech-modern .ft-commerce-main ul.products li.product a[href*="#respond"] > span { display: none !important; }
body.freditech-modern .ft-commerce-main ul.products li.product a img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 0 16px; border-radius: 10px; background: #f8fafc; }
body.freditech-modern .ft-commerce-main ul.products li.product .woocommerce-loop-product__title, body.freditech-modern .ft-commerce-main .woocommerce-loop-category__title { padding: 0; margin: 0 0 12px; color: #172033; font-size: 17px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
body.freditech-modern .ft-commerce-main .total-product-title-wrap { padding: 0; background: transparent; }
body.freditech-modern .ft-commerce-main .woocommerce-loop-product__title::before { display: none; }
body.freditech-modern .ft-commerce-main ul.products .price { display: block; margin: 10px 0 16px; color: #172033; font-size: 20px; line-height: 1.4; font-weight: 800; }
body.freditech-modern .ft-commerce-main ul.products .price del { opacity: 1; color: #526075; font-size: 15px; }
body.freditech-modern .ft-commerce-main ul.products .price ins { background: none; text-decoration: none; }
body.freditech-modern .ft-commerce-main ul.products a.button { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; margin-top: auto; padding: 12px; border: 1px solid #0b172b; border-radius: 10px; color: #fff; background: #0b172b; font-size: 14px; text-align: center; line-height: 1.4; }
body.freditech-modern .ft-commerce-main ul.products a.button:hover { background: #006b91; }
body.freditech-modern .ft-commerce-main a.added_to_cart { min-height: 44px; padding-top: 12px; color: #006b91; text-decoration: underline; }
body.freditech-modern .ft-commerce-main .onsale { background: #6042c8; color: #fff; }
body.freditech-modern .ft-commerce-main nav.woocommerce-pagination { margin-top: 30px; }
body.freditech-modern .ft-commerce-main nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; }
body.freditech-modern .ft-commerce-main nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
body.freditech-modern .ft-commerce-main nav.woocommerce-pagination .page-numbers a, body.freditech-modern .ft-commerce-main nav.woocommerce-pagination .page-numbers span { display: grid; min-width: 48px; min-height: 48px; padding: 10px; place-items: center; border: 2px solid #526075; border-radius: 10px; background: #fff; color: #172033; font-size: 16px; font-weight: 800; }
body.freditech-modern .ft-commerce-main nav.woocommerce-pagination span.current, body.freditech-modern .ft-commerce-main nav.woocommerce-pagination a:hover { background: #0b172b; color: #fff; }
body.freditech-modern .ft-commerce-main div.product .product_title { font-size: clamp(27px, 3vw, 40px); color: #0b172b; line-height: 1.2; }
body.freditech-modern .ft-commerce-main div.product div.images img { height: auto; border-radius: 14px; }
body.freditech-modern .ft-commerce-main div.product .summary { min-width: 0; }
body.freditech-modern .ft-commerce-main div.product .summary .price { color: #006b91; font-size: 26px; }
body.freditech-modern .ft-commerce-main .variations select { min-height: 48px; max-width: 100%; padding: 10px; font-size: 16px; color: #172033; background: #fff; border: 1px solid #718197; border-radius: 8px; }
body.freditech-modern .ft-commerce-main .quantity input { min-height: 48px; font-size: 16px; }
body.freditech-modern .ft-commerce-main .single_add_to_cart_button { min-height: 48px; font-size: 16px; }
.ft-commerce-main .ft-share--bottom { width: 100%; clear: both; }
.ft-commerce-main .woocommerce-tabs { clear: both; }
.ft-commerce-main .woocommerce-tabs .panel { color: #344054; overflow-wrap: anywhere; }
.ft-commerce-main .woocommerce-tabs .panel img { max-width: 100%; height: auto; }
.ft-commerce-main .woocommerce-tabs .panel a { color: #006b91; text-decoration: underline; }
@media (max-width: 1180px) { body.freditech-modern .ft-commerce-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { body.freditech-modern .ft-commerce-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 782px) {
 .ft-shop-hero { grid-template-columns: 1fr; border-radius: 18px; }
 .ft-shop-hero__copy { padding: 26px; }
 body.freditech-modern .ft-shop-hero__image { height: auto; max-height: none; }
 body.freditech-modern .ft-shop-hero h1 { font-size: clamp(31px, 7.5vw, 45px); }
 .ft-shop-search { max-width: none; flex-basis: 100%; }
 body.freditech-modern .ft-commerce-main .woocommerce-result-count, body.freditech-modern .ft-commerce-main .woocommerce-ordering { float: none; width: 100%; }
 body.freditech-modern .ft-commerce-main div.product div.images, body.freditech-modern .ft-commerce-main div.product .summary { float: none; width: 100%; }
 body.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; padding: 0; }
 body.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li { margin: 0 5px 6px 0; }
 body.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li a { min-height: 44px; padding: 10px 5px; }
}
@media (max-width: 480px) { body.freditech-modern .ft-commerce-main ul.products { grid-template-columns: 1fr; } }

/* Shared product, cart, checkout/order-pay and customer-account presentation.
   Color overrides are explicit because the parent emits !important rules. */
body.freditech-modern.ft-commerce-page #primary-content { font-family: var(--ft-font-sans); }
body.freditech-modern.ft-commerce-page #primary-content :is(h1,h2,h3,h4,h5,h6,p,li,td,th,dt,dd,label,legend,address,button,input,select,textarea,a:not([class^="star-"]),.woocommerce-Price-amount,.product_meta,.comment-reply-title) { font-family: var(--ft-font-sans) !important; }
body.freditech-modern.ft-commerce-page #primary-content :is(bdi,strong,em,small,.product_meta span,.woocommerce-product-attributes span,.wc-block-components-button__text,.ft-share__button span) { font-family: var(--ft-font-sans) !important; }
body.freditech-modern.ft-commerce-page #primary-content .ft-page-article { width: 100%; }
body.freditech-modern.ft-commerce-page #primary-content .ft-entry-content { font-size: 16px; }
body.freditech-modern.ft-commerce-page #primary-content .ft-page-wrap { padding-block: 36px 60px; }
body.freditech-modern.ft-commerce-page #primary-content .ft-inner-hero { min-height: 0; padding-block: 32px; }
body.freditech-modern.ft-commerce-page #primary-content .ft-inner-hero h1 { font-size: clamp(32px, 4vw, 48px); }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) { color: #263047; }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) :where(p,label,legend,address,dt,dd,small) { color: #263047; }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) label,
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) label span { color: #172033 !important; }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) a:not(.button):not(.wc-block-components-button):not(.ft-share__button) { color: #006b91; }
body.freditech-modern.ft-commerce-page #primary-content :is(.button,input[type="submit"],button[type="submit"],.wc-block-components-button:not(.is-link),#paystack-payment-button),
body.freditech-modern.ft-commerce-page #primary-content #paystack_form a {
 display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 0; height: auto;
 max-width: 100%; padding: 12px 20px; margin-bottom: 0; border: 1px solid #0b172b !important; border-radius: 10px;
 background: #0b172b !important; color: #fff !important; font-size: 15px; font-weight: 750; line-height: 1.45;
 text-align: center; text-decoration: none; text-shadow: none; box-shadow: none; white-space: normal;
}
body.freditech-modern.ft-commerce-page #primary-content :is(.button,input[type="submit"],button[type="submit"],.wc-block-components-button:not(.is-link),#paystack-payment-button):hover,
body.freditech-modern.ft-commerce-page #primary-content #paystack_form a:hover { background: #13c6ff !important; color: #071321 !important; border-color: #006b91 !important; }
body.freditech-modern.ft-commerce-page #primary-content :is(.button,.wc-block-components-button) :is(span,strong) { color: inherit !important; }
body.freditech-modern.ft-commerce-page #primary-content :is(.button,input[type="submit"],button[type="submit"]):is(:disabled,.disabled) { background: #e2e8f0 !important; color: #40516a !important; border-color: #9aa8b9 !important; opacity: 1; cursor: not-allowed; }
body.freditech-modern.ft-commerce-page #primary-content a.button::before { display: none; }
body.freditech-modern.ft-commerce-page #primary-content .quantity { margin-inline-end: 12px; }
body.freditech-modern.ft-commerce-page #primary-content .quantity :is(button,.plus,.minus) { min-width: 36px; min-height: 44px; background: #eaf5fa; color: #0b172b !important; border-color: #718197; }
body.freditech-modern.ft-commerce-page #primary-content .summary > .ft-share-top { margin-bottom: 16px; }
body.freditech-modern.ft-commerce-page #primary-content .summary p { line-height: 1.75; }
body.freditech-modern.ft-commerce-page #primary-content .product_title { font-weight: 850; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #cbd5e1; overflow: visible; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs::before,
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li::before,
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li::after { display: none; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 1px solid #718197; border-radius: 10px; background: #fff !important; color: #172033; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li a { display: block; min-height: 48px; padding: 12px 18px; color: #172033 !important; line-height: 1.45; text-decoration: none; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li.active { background: #0b172b !important; border-color: #0b172b; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li:hover { background: #13c6ff !important; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs ul.tabs li:hover a { color: #071321 !important; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs .panel { color: #263047; line-height: 1.8; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs :is(h2,h3) { color: #0b172b; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-tabs :is(h2,h3)::after { background: #13c6ff; }
body.freditech-modern.ft-commerce-page #primary-content .star-rating,
body.freditech-modern.ft-commerce-page #primary-content p.stars a { color: #006b91 !important; }
body.freditech-modern.ft-commerce-page #primary-content table.shop_attributes th { background: #eaf5fa !important; color: #172033 !important; }
body.freditech-modern.ft-commerce-page #primary-content table.shop_attributes td { background: #fff; color: #263047; }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) :is(input.input-text,textarea,select) { max-width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #718197; border-radius: 8px; background-color: #fff; color: #172033; font-size: 16px; }
body.freditech-modern.ft-commerce-page :is(#primary-content.woocommerce,#primary-content .woocommerce,#primary-content .wc-block-cart,#primary-content .wc-block-checkout) :is(input,textarea)::placeholder { color: #526075; opacity: 1; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce :is(.form-row,fieldset) { min-width: 0; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) { background: #f4f7fb; color: #172033; border-top-color: #006b91; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce :is(.woocommerce-info,.woocommerce-message)::before { color: #006b91; }
body.freditech-modern.ft-commerce-page #primary-content :is(#payment,.woocommerce-checkout-payment,.woocommerce-MyAccount-content,form.login,form.register) { background: #fff; color: #263047; }
body.freditech-modern.ft-commerce-page #primary-content #payment .payment_box { background: #eaf5fa; color: #172033; }
body.freditech-modern.ft-commerce-page #primary-content #payment .payment_box::before { border-bottom-color: #eaf5fa; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation li { padding: 0; margin: 0 0 6px; background: transparent; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation li a { display: block; min-height: 48px; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f4f7fb !important; color: #172033 !important; text-decoration: none; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation li.is-active a { background: #0b172b !important; color: #fff !important; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation li a:hover { background: #13c6ff !important; color: #071321 !important; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-content :is(p,li,address,legend,small,strong) { color: #263047; }
body.freditech-modern.ft-commerce-page #primary-content .woocommerce :is(h2,h3,legend,.comment-reply-title) { color: #0b172b; }
body.freditech-modern.ft-commerce-page #primary-content #paystack_form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Editorial table minimum widths must not leak into either WooCommerce cart. */
body.freditech-modern.ft-commerce-page #primary-content :is(table.shop_table,table.wc-block-cart-items) { display: table; width: 100%; min-width: 0; margin: 0 0 24px; overflow: visible; border-collapse: collapse; }
body.freditech-modern.ft-commerce-page #primary-content :is(table.shop_table,table.wc-block-cart-items) :is(th,td) { min-width: 0; vertical-align: top; }
body.freditech-modern.ft-commerce-page #primary-content :is(table.shop_table,table.wc-block-cart-items) th { background: #f4f7fb; color: #172033; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-items :is(th,td) { border: 0; background: transparent; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-item__image { width: 100px; padding-inline-end: 20px; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-item__image img { display: block; width: 80px; height: auto; margin: 0; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-item__product { min-width: 0; padding-inline-start: 8px; overflow-wrap: anywhere; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-components-product-metadata { margin-top: 10px; }
body.freditech-modern.ft-commerce-page #primary-content .wc-block-components-product-metadata p { margin: 0 0 10px; }
@media (max-width: 782px) {
 body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-items__row { display: grid !important; grid-template-columns: 80px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; padding-block: 20px; border-bottom: 1px solid #cbd5e1; }
 body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-items__row .wc-block-cart-item__image { display: block; grid-column: 1; grid-row: 1 / 3; width: 80px; padding: 0 !important; }
 body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2; grid-row: 1; width: auto; padding: 0 !important; text-align: start; }
 body.freditech-modern.ft-commerce-page #primary-content .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 2; grid-row: 2; width: auto; padding: 0 !important; text-align: start; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart tbody { display: block; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart tr.cart_item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px 18px; padding: 20px 12px; border-bottom: 1px solid #cbd5e1; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart .cart_item td { display: block; grid-column: 1 / -1; width: auto; min-width: 0; padding: 8px 0; margin: 0; border: 0; background: #fff; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart td.product-thumbnail { display: block !important; grid-column: 1; grid-row: 1; padding: 0; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart td.product-thumbnail img { display: block; width: 80px; height: auto; margin: 0; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart td.product-name { grid-column: 2; grid-row: 1; padding: 0; text-align: start !important; overflow-wrap: anywhere; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart td.product-remove { grid-column: 2; grid-row: 2; justify-self: end; }
 body.freditech-modern.ft-commerce-page #primary-content table.shop_table_responsive.cart :is(td.product-thumbnail,td.product-name,td.product-remove)::before { display: none; }
 body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-navigation,
 body.freditech-modern.ft-commerce-page #primary-content .woocommerce-MyAccount-content { float: none; width: 100%; }
 body.freditech-modern.ft-commerce-page #primary-content .woocommerce .col2-set :is(.col-1,.col-2) { float: none; width: 100%; margin-bottom: 24px; }
}

/* Version 1.4 — AliExpress-inspired compact marketplace layout. */
body.freditech-modern.ft-commerce-page {
	--ft-shop-orange: #ff6a00;
	--ft-shop-orange-dark: #df5700;
	--ft-shop-ink: #071a3d;
	--ft-shop-line: #dde3ea;
	--ft-shop-soft: #f7f8fb;
	--ft-shop-muted: #667085;
	overscroll-behavior-y: auto;
}

html:has(body.freditech-modern.ft-commerce-page.single-product) {
	scroll-behavior: auto;
}

body.freditech-modern .ft-commerce-main {
	padding-top: 12px;
	background: #fff;
}

.ft-market-head {
	position: relative;
	z-index: 8;
	margin: 0 0 18px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--ft-shop-line);
	background: #fff;
}

.ft-market-head__row {
	display: grid;
	grid-template-columns: auto auto minmax(260px, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.ft-market-brand {
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}

.ft-market-brand__eyebrow {
	color: var(--ft-shop-ink);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .05em;
	text-transform: uppercase;
}

body.freditech-modern .ft-market-brand h1 {
	margin: 0;
	color: var(--ft-shop-ink);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.03em;
}

.ft-market-categories {
	position: relative;
}

.ft-market-categories summary {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid var(--ft-shop-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ft-shop-ink);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.ft-market-categories summary::-webkit-details-marker {
	display: none;
}

.ft-market-categories__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	display: grid;
	width: min(310px, 82vw);
	max-height: min(64vh, 560px);
	padding: 10px;
	overflow-y: auto;
	border: 1px solid var(--ft-shop-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(7, 26, 61, .14);
}

body.freditech-modern .ft-market-categories__panel a {
	display: block;
	padding: 10px 12px;
	border-radius: 9px;
	color: var(--ft-shop-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

body.freditech-modern .ft-market-categories__panel a:hover,
body.freditech-modern .ft-market-categories__panel a[aria-current] {
	background: #fff2e8;
	color: #8d3212;
}

.ft-market-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48px;
	min-width: 0;
	margin: 0;
	border: 1px solid #aeb7c4;
	border-radius: 24px;
	background: #fff;
	overflow: hidden;
}

body.freditech-modern .ft-market-search input[type="search"] {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: 10px 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ft-shop-ink);
	font-size: 16px;
	box-shadow: none;
}

body.freditech-modern .ft-market-search button {
	display: grid;
	min-width: 48px;
	min-height: 46px;
	padding: 0;
	place-items: center;
	border: 0;
	background: var(--ft-shop-ink);
	color: #fff;
	cursor: pointer;
}

.ft-currency-switcher {
	display: grid;
	gap: 4px;
	margin: 0;
}

.ft-currency-switcher label {
	color: var(--ft-shop-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

body.freditech-modern .ft-currency-switcher select {
	min-height: 44px;
	padding: 8px 34px 8px 10px;
	border: 1px solid var(--ft-shop-line);
	border-radius: 10px;
	background-color: #fff;
	color: var(--ft-shop-ink);
	font-size: 13px;
	font-weight: 800;
}

.ft-shop-products {
	padding-top: 8px;
}

/* Dense marketplace product grid: five columns desktop, two on mobile. */
body.freditech-modern .ft-commerce-main ul.products {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

body.freditech-modern .ft-commerce-main ul.products li.product {
	position: relative;
	min-width: 0;
	padding: 8px 8px 12px;
	border: 1px solid var(--ft-shop-line);
	border-radius: 14px;
	box-shadow: none;
	container-type: inline-size;
	content-visibility: auto;
	contain-intrinsic-size: 290px 390px;
}

body.freditech-modern .ft-commerce-main ul.products li.product:hover {
	border-color: #c8d0dc;
	box-shadow: 0 8px 24px rgba(7, 26, 61, .08);
}

body.freditech-modern .ft-commerce-main ul.products li.product a img {
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
	border-radius: 10px;
	background: #fff;
	object-fit: contain;
}

body.freditech-modern .ft-commerce-main ul.products li.product .woocommerce-loop-product__title,
body.freditech-modern .ft-commerce-main .woocommerce-loop-category__title {
	display: -webkit-box;
	min-height: 1.42em;
	max-height: 1.42em;
	margin: 0 0 5px;
	padding: 0;
	overflow: hidden;
	color: var(--ft-shop-ink);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.42;
	text-align: left !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

body.freditech-modern .ft-commerce-main ul.products .price {
	display: flex;
	min-height: 22px;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 4px;
	width: 100%;
	margin: 2px 0 7px;
	overflow: hidden;
	color: #111827;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.25;
	text-align: left;
	white-space: nowrap;
}

body.freditech-modern .ft-commerce-main ul.products .price del {
	flex: 0 0 auto;
	font-size: 11px;
}

body.freditech-modern .ft-commerce-main ul.products .price ins {
	flex: 0 0 auto;
}

body.freditech-modern .ft-commerce-main ul.products a.button,
body.freditech-modern .ft-commerce-main ul.products a.button.alt {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--ft-shop-orange) !important;
	border-radius: 9px;
	background: var(--ft-shop-orange) !important;
	color: #111 !important;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
}

body.freditech-modern .ft-commerce-main ul.products a.button:hover,
body.freditech-modern .ft-commerce-main ul.products a.button.alt:hover {
	background: #ff8129 !important;
	border-color: #ff8129 !important;
	color: #111 !important;
}

.ft-loop-shipping {
	position: relative;
	display: inline-flex;
	width: fit-content;
	min-height: 18px;
	align-items: center;
	gap: 5px;
	margin: 0 0 6px;
	padding: 2px 7px 2px 6px;
	overflow: hidden;
	border: 1px solid rgba(19,121,91,.16);
	border-radius: 999px;
	background: linear-gradient(90deg,#edf9f4,#f6fff9,#edf9f4);
	background-size: 200% 100%;
	color: #13795b;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: none;
	animation: ft-free-shipping-glow 3.8s ease-in-out infinite;
}

.ft-loop-shipping::before {
	content: "✓";
	display: grid;
	width: 15px;
	height: 15px;
	place-items: center;
	border-radius: 50%;
	background: #13795b;
	color: #fff;
	font-size: 9px;
	font-weight: 900;
}

@keyframes ft-free-shipping-glow {
	0%,100% { background-position: 0 50%; box-shadow: 0 0 0 rgba(19,121,91,0); }
	50% { background-position: 100% 50%; box-shadow: 0 3px 12px rgba(19,121,91,.12); }
}

@media (prefers-reduced-motion: reduce) {
	.ft-loop-shipping { animation: none; }
}

body.freditech-modern .ft-commerce-main ul.products li.product > a.woocommerce-LoopProduct-link,
body.freditech-modern .ft-commerce-main ul.products li.product > a.woocommerce-loop-product__link {
	position: relative;
	display: block;
}

body.freditech-modern .ft-commerce-main ul.products li.product .onsale {
	display: none !important;
}

body.freditech-modern .ft-commerce-main ul.products li.product .ft-loop-deal-badge {
	position: absolute;
	top: calc(100cqw - 23px);
	right: 14px;
	z-index: 4;
	display: inline-flex;
	min-width: 0;
	min-height: 23px;
	align-items: center;
	justify-content: center;
	padding: 4px 7px;
	border: 1px solid rgba(255,255,255,.84);
	border-radius: 999px;
	background: rgba(7,26,61,.94);
	box-shadow: 0 4px 14px rgba(7,26,61,.18);
	color: #fff;
	font-size: 10px;
	font-weight: 850;
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: none;
	backdrop-filter: blur(6px);
	pointer-events: none;
}

body.single-product.freditech-modern .ft-commerce-main :is(.woocommerce-product-details__short-description,.woocommerce-tabs .panel),
body.single-product.freditech-modern .ft-commerce-main :is(.woocommerce-product-details__short-description,.woocommerce-tabs .panel) * {
	font-family: var(--ft-font-sans) !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel {
	color: #344054;
	font-size: clamp(16px, 1.35vw, 18px);
	line-height: 1.82;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-product-details__short-description {
	font-size: 16px;
	line-height: 1.72;
}

@media (max-width: 782px) {
	body.freditech-modern .ft-commerce-main ul.products li.product {
		padding: 5px 5px 9px !important;
	}

	body.freditech-modern .ft-commerce-main ul.products li.product .woocommerce-loop-product__title {
		font-size: 11.5px !important;
		text-align: left !important;
	}

	body.freditech-modern .ft-commerce-main ul.products .price {
		gap: 3px;
		margin: 1px 0 6px;
		font-size: clamp(10.5px, 3vw, 13px) !important;
		letter-spacing: -.035em;
	}

	body.freditech-modern .ft-commerce-main ul.products .price del {
		font-size: 10px;
	}

	.ft-loop-shipping {
		margin-bottom: 5px;
		padding: 2px 6px 2px 5px;
		font-size: 9.5px;
	}

	.ft-loop-shipping::before {
		width: 14px;
		height: 14px;
		font-size: 8px;
	}

	body.freditech-modern .ft-commerce-main ul.products li.product .ft-loop-deal-badge {
		top: calc(100cqw - 21px);
		right: 10px;
		min-height: 21px;
		padding: 3px 6px;
		font-size: 9px;
	}
}

/* Progressive auto-loading replaces bulky numbered pagination when JS is available. */
.ft-shop-loader {
	display: grid;
	place-items: center;
	gap: 8px;
	padding: 18px 0 8px;
}

.ft-shop-loader__sentinel {
	width: 100%;
	height: 1px;
}

.ft-shop-loader__status {
	margin: 0;
	color: var(--ft-shop-muted);
	font-size: 13px;
	text-align: center;
}

body.freditech-modern .ft-shop-loader__button {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--ft-shop-orange);
	border-radius: 10px;
	background: var(--ft-shop-orange);
	color: #111;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

/* Product page: fast, AliExpress-inspired media + summary split. */
body.single-product.freditech-modern .ft-commerce-main .product.type-product {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(340px, .8fr);
	align-items: start;
	gap: clamp(24px, 3vw, 44px);
	width: 100%;
}

body.single-product.freditech-modern .ft-commerce-main div.product div.images,
body.single-product.freditech-modern .ft-commerce-main div.product .summary {
	float: none;
	width: 100%;
	margin: 0;
}

body.single-product.freditech-modern .ft-commerce-main div.product div.images {
	grid-column: 1;
	min-width: 0;
	touch-action: pan-y pinch-zoom;
}

body.single-product.freditech-modern .ft-commerce-main div.product .summary {
	position: static;
	top: auto;
	grid-column: 2;
	align-self: start;
	min-width: 0;
	padding: 18px 0 0;
	touch-action: auto;
}

body.single-product.freditech-modern .ft-commerce-main div.product .product_title {
	margin: 0 0 12px;
	color: var(--ft-shop-ink);
	font-size: clamp(22px, 2.2vw, 31px);
	font-weight: 850;
	line-height: 1.28;
	letter-spacing: -.025em;
}

body.single-product.freditech-modern .ft-commerce-main div.product .summary .price {
	margin: 10px 0 16px;
	color: #111827;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 900;
}

body.single-product.freditech-modern .ft-commerce-main div.product .summary .woocommerce-product-details__short-description {
	margin: 0 0 16px;
	color: #455268;
	font-size: 15px;
	line-height: 1.65;
}

body.single-product.freditech-modern .ft-commerce-main .single_add_to_cart_button,
body.single-product.freditech-modern .ft-commerce-main button.single_add_to_cart_button.alt {
	min-height: 50px;
	padding: 11px 24px;
	border-color: var(--ft-shop-orange) !important;
	background: var(--ft-shop-orange) !important;
	color: #111 !important;
	font-size: 15px;
	font-weight: 900;
}

body.single-product.freditech-modern .ft-commerce-main .single_add_to_cart_button:hover {
	background: #ff8129 !important;
	border-color: #ff8129 !important;
	color: #111 !important;
}

.ft-shipping-promise {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px !important;
	padding: 8px 11px;
	border-radius: 8px;
	background: #edf9f4;
	color: #13795b !important;
	font-size: 13px;
	font-weight: 850;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs {
	grid-column: 1;
	width: 100%;
	min-width: 0;
	align-self: start;
	overflow: hidden;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel img {
	display: block;
	max-width: 100%;
	height: auto;
}

body.single-product.freditech-modern .ft-commerce-main .related,
body.single-product.freditech-modern .ft-commerce-main .upsells {
	grid-column: 1 / -1;
	width: 100%;
}

body.single-product.freditech-modern .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	max-height: 720px;
	object-fit: contain;
	background: #fff;
}

body.single-product.freditech-modern .woocommerce-product-gallery {
	overflow: visible;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: contain;
	border: 1px solid var(--ft-shop-line);
	border-radius: 8px;
}

@media (max-width: 1180px) {
	.ft-market-head__row {
		grid-template-columns: auto auto minmax(220px, 1fr);
	}

	.ft-currency-switcher {
		grid-column: 3;
		justify-self: end;
	}

	body.freditech-modern .ft-commerce-main ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ft-market-head__row {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.ft-market-brand {
		grid-column: 1 / -1;
	}

	.ft-market-categories {
		grid-column: 1;
	}

	.ft-market-search {
		grid-column: 2;
	}

	.ft-currency-switcher {
		grid-column: 1 / -1;
		justify-self: start;
	}

	body.freditech-modern .ft-commerce-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.single-product.freditech-modern .ft-commerce-main .product.type-product {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product.freditech-modern .ft-commerce-main div.product div.images,
	body.single-product.freditech-modern .ft-commerce-main div.product .summary {
		grid-column: 1;
	}

	body.single-product.freditech-modern .ft-commerce-main div.product .summary {
		position: static;
	}
}

@media (max-width: 782px) {
	body.freditech-modern .ft-commerce-main {
		padding-top: 8px;
	}

	.ft-market-head {
		margin-bottom: 10px;
	}

	.ft-market-head__row {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px;
	}

	.ft-market-brand {
		grid-column: 1 / -1;
	}

	body.freditech-modern .ft-market-brand h1 {
		font-size: 20px;
	}

	.ft-market-categories summary {
		width: 44px;
		min-width: 44px;
		padding: 9px;
		justify-content: center;
	}

	.ft-market-categories summary span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0,0,0,0);
		white-space: nowrap;
		border: 0;
	}

	.ft-market-search {
		grid-column: 2;
	}

	.ft-currency-switcher {
		grid-column: 1 / -1;
	}

	body.freditech-modern .ft-commerce-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body.freditech-modern .ft-commerce-main ul.products li.product {
		padding: 7px 7px 10px;
		border-radius: 11px;
	}

	body.freditech-modern .ft-commerce-main ul.products li.product .woocommerce-loop-product__title {
		font-size: 12px;
	}

	body.freditech-modern .ft-commerce-main ul.products .price {
		font-size: 15px;
	}

	body.freditech-modern .ft-commerce-main ul.products a.button {
		min-height: 38px;
		padding: 7px 8px;
		font-size: 11px;
	}

	body.single-product.freditech-modern .ft-commerce-main .woocommerce-product-gallery__image img {
		max-height: none;
	}

	body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	body.single-product.freditech-modern .ft-commerce-main div.product .product_title {
		font-size: 21px;
	}

	body.single-product.freditech-modern .ft-commerce-main div.product .summary .price {
		font-size: 28px;
	}
}

@media (max-width: 420px) {
	body.freditech-modern .ft-commerce-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ft-commerce-shell {
		width: min(calc(100% - 20px), var(--ft-shell));
	}

	.ft-market-search {
		grid-template-columns: minmax(0, 1fr) 44px;
	}

	body.freditech-modern .ft-market-search input[type="search"] {
		min-height: 44px;
		padding-inline: 12px;
	}

	body.freditech-modern .ft-market-search button {
		min-width: 44px;
		min-height: 44px;
	}
}

/* Version 1.5 — match shop cards to homepage tech picks and keep product pages scroll-safe. */
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product {
	overflow: hidden;
	padding: 0 0 10px !important;
	border: 1px solid var(--ft-shop-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product > a.woocommerce-LoopProduct-link {
	display: block;
	min-width: 0;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 8px !important;
	border-radius: 0 !important;
	background: #fff;
	object-fit: cover;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .woocommerce-loop-product__title,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .ft-loop-shipping {
	margin-left: 8px;
	margin-right: 8px;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: 1.45em;
	max-height: 1.45em;
	margin-bottom: 6px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price {
	min-height: 24px;
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 900;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.button,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.button.alt,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.added_to_cart,
body.post-type-archive-product.freditech-modern .woocommerce ul.products li.product a.button,
body.post-type-archive-product.freditech-modern .woocommerce ul.products li.product .button,
body.tax-product_cat.freditech-modern .woocommerce ul.products li.product a.button,
body.tax-product_tag.freditech-modern .woocommerce ul.products li.product a.button {
	width: calc(100% - 16px) !important;
	min-height: 40px !important;
	margin: auto 8px 0 !important;
	padding: 8px 10px !important;
	border: 1px solid #ff6a00 !important;
	border-radius: 9px !important;
	background: #ff6a00 !important;
	background-color: #ff6a00 !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
	box-shadow: none !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.button:hover,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.button.alt:hover,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product a.added_to_cart:hover {
	border-color: #ff8129 !important;
	background: #ff8129 !important;
	color: #111 !important;
}

/* Keep variation/cart actions orange despite parent-theme !important button rules. */
body.single-product.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main .single_add_to_cart_button,
body.single-product.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main button.single_add_to_cart_button.alt {
	border-color: var(--ft-shop-orange) !important;
	background: var(--ft-shop-orange) !important;
	color: #111 !important;
}

body.single-product.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main .single_add_to_cart_button:hover,
body.single-product.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main button.single_add_to_cart_button.alt:hover {
	border-color: #ff8129 !important;
	background: #ff8129 !important;
	color: #111 !important;
}

/* Product information stays in the media column instead of running beneath the purchase panel. */
body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs {
	grid-column: 1 !important;
	max-width: 100%;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel,
body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel > * {
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

body.single-product.freditech-modern .ft-commerce-main div.product .summary {
	position: static !important;
	top: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

/* Avoid scroll-jank from nested gallery/content containers. */
body.single-product.freditech-modern,
body.single-product.freditech-modern .ft-commerce-main,
body.single-product.freditech-modern .ft-commerce-main .product.type-product,
body.single-product.freditech-modern .ft-commerce-main div.product div.images,
body.single-product.freditech-modern .ft-commerce-main div.product .summary,
body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs {
	overscroll-behavior: auto;
	scroll-behavior: auto;
	touch-action: auto;
}

@media (max-width: 900px) {
	body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs,
	body.single-product.freditech-modern .ft-commerce-main .related,
	body.single-product.freditech-modern .ft-commerce-main .upsells {
		grid-column: 1 !important;
	}
}

/* Version 1.6 — restore effortless commerce-page scrolling and normalize related products. */
html:has(body.ft-commerce-page),
body.ft-commerce-page {
	height: auto !important;
	min-height: 100% !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	scroll-behavior: auto !important;
	overscroll-behavior-y: auto !important;
}

body.ft-commerce-page #page,
body.ft-commerce-page .site,
body.ft-commerce-page .ft-commerce-main,
body.ft-commerce-page .ft-commerce-shell {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	scroll-behavior: auto !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	min-width: 0 !important;
	margin-top: 34px !important;
	overflow: visible !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products > h2 {
	margin: 0 0 18px !important;
	color: var(--ft-shop-ink) !important;
	font-size: 22px !important;
	font-weight: 900 !important;
	text-transform: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 0 10px !important;
	overflow: hidden !important;
	border: 1px solid var(--ft-shop-line) !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: none !important;
	content-visibility: visible !important;
	contain: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product > a.woocommerce-LoopProduct-link {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product img {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	margin: 0 0 8px !important;
	object-fit: cover !important;
	background: #fff !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	min-height: 2.8em !important;
	max-height: 2.8em !important;
	margin: 0 9px 6px !important;
	padding: 0 !important;
	overflow: hidden !important;
	color: var(--ft-shop-ink) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product .price {
	margin: 0 9px 9px !important;
	color: #111827 !important;
	font-size: 16px !important;
	font-weight: 900 !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product > a.button {
	width: calc(100% - 18px) !important;
	min-height: 40px !important;
	margin: auto 9px 0 !important;
	padding: 8px 10px !important;
	border: 1px solid #ff6a00 !important;
	border-radius: 9px !important;
	background: #ff6a00 !important;
	background-color: #ff6a00 !important;
	background-image: none !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ft-related-more {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 20px 0 4px;
}

body.freditech-modern .ft-related-more__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid #ff6a00;
	border-radius: 10px;
	background: #ff6a00;
	color: #111 !important;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none !important;
	box-shadow: none;
}

body.freditech-modern .ft-related-more__button:hover {
	border-color: #ff8129;
	background: #ff8129;
	color: #111 !important;
}

@media (max-width: 782px) {
	body.single-product.freditech-modern .ft-commerce-main .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product .woocommerce-loop-product__title {
		font-size: 12px !important;
	}
}

/* Version 1.7 — compact one-line mobile shop controls + visible free-shipping labels. */
.ft-loop-shipping {
	display: inline-flex !important;
	align-items: center;
	min-height: 20px;
	margin: 0 8px 8px !important;
	color: #d40000 !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

@media (max-width: 782px) {
	body.post-type-archive-product.freditech-modern .woocommerce-result-count,
	body.tax-product_cat.freditech-modern .woocommerce-result-count,
	body.tax-product_tag.freditech-modern .woocommerce-result-count {
		display: none !important;
	}

	.ft-market-head {
		margin-bottom: 8px !important;
		padding-bottom: 10px !important;
	}

	.ft-market-head__row {
		display: grid !important;
		grid-template-columns: 74px 36px minmax(0, 1fr) 62px !important;
		align-items: center !important;
		gap: 5px !important;
		width: 100% !important;
	}

	.ft-market-brand {
		grid-column: 1 !important;
		display: flex !important;
		align-items: baseline !important;
		gap: 3px !important;
		min-width: 0 !important;
		white-space: nowrap !important;
	}

	.ft-market-brand__eyebrow {
		font-size: 9px !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
	}

	body.freditech-modern .ft-market-brand h1 {
		font-size: 12px !important;
		line-height: 1 !important;
		letter-spacing: -.02em !important;
	}

	.ft-market-categories {
		grid-column: 2 !important;
		min-width: 0 !important;
	}

	.ft-market-categories summary {
		width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
		min-height: 36px !important;
		padding: 6px !important;
		justify-content: center !important;
		border-radius: 9px !important;
	}

	.ft-market-categories summary svg {
		width: 19px !important;
		height: 19px !important;
	}

	.ft-market-categories summary span {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0,0,0,0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	.ft-market-search {
		grid-column: 3 !important;
		min-width: 0 !important;
		grid-template-columns: minmax(0, 1fr) 36px !important;
		border-radius: 18px !important;
	}

	body.freditech-modern .ft-market-search input[type="search"] {
		min-height: 36px !important;
		height: 36px !important;
		padding: 7px 8px !important;
		font-size: 12px !important;
	}

	body.freditech-modern .ft-market-search button {
		min-width: 36px !important;
		min-height: 36px !important;
		height: 36px !important;
	}

	body.freditech-modern .ft-market-search button svg {
		width: 17px !important;
		height: 17px !important;
	}

	.ft-currency-switcher {
		grid-column: 4 !important;
		display: block !important;
		min-width: 0 !important;
		justify-self: stretch !important;
	}

	.ft-currency-switcher label {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0,0,0,0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	body.freditech-modern .ft-currency-switcher select {
		width: 62px !important;
		max-width: 62px !important;
		min-height: 36px !important;
		height: 36px !important;
		padding: 5px 18px 5px 6px !important;
		border-radius: 9px !important;
		font-size: 10px !important;
		font-weight: 900 !important;
	}

	.ft-loop-shipping {
		margin: 0 7px 7px !important;
		font-size: 10px !important;
	}
}

@media (max-width: 380px) {
	.ft-market-head__row {
		grid-template-columns: 68px 34px minmax(0, 1fr) 58px !important;
		gap: 4px !important;
	}

	.ft-market-brand__eyebrow {
		font-size: 8px !important;
	}

	body.freditech-modern .ft-market-brand h1 {
		font-size: 11px !important;
	}

	.ft-market-categories summary {
		width: 34px !important;
		min-width: 34px !important;
	}

	body.freditech-modern .ft-currency-switcher select {
		width: 58px !important;
		max-width: 58px !important;
		font-size: 9px !important;
	}
}

/* Version 1.8 — compact storefront toolbar and refined AliExpress-style product layout. */
body.post-type-archive-product.freditech-modern .ft-commerce-main,
body.tax-product_cat.freditech-modern .ft-commerce-main,
body.tax-product_tag.freditech-modern .ft-commerce-main {
	padding-top: 26px !important;
}

body.post-type-archive-product.freditech-modern .woocommerce-result-count,
body.tax-product_cat.freditech-modern .woocommerce-result-count,
body.tax-product_tag.freditech-modern .woocommerce-result-count,
body.post-type-archive-product.freditech-modern .woocommerce-ordering,
body.tax-product_cat.freditech-modern .woocommerce-ordering,
body.tax-product_tag.freditech-modern .woocommerce-ordering {
	display: none !important;
}

.ft-market-head {
	padding-top: 6px;
}

.ft-market-head__row {
	grid-template-columns: auto auto minmax(220px, 430px) minmax(150px, 180px) auto;
	gap: 10px;
}

.ft-market-search {
	width: 100%;
	max-width: 430px;
}

.ft-market-sort,
.ft-currency-switcher {
	display: grid;
	gap: 4px;
	margin: 0;
}

.ft-market-sort label,
.ft-currency-switcher label {
	color: var(--ft-shop-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

body.freditech-modern .ft-market-sort select {
	min-height: 44px;
	max-width: 180px;
	padding: 8px 32px 8px 10px;
	border: 1px solid var(--ft-shop-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ft-shop-ink);
	font-size: 12px;
	font-weight: 800;
}

.ft-currency-control {
	position: relative;
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	padding-left: 10px;
	border: 1px solid var(--ft-shop-line);
	border-radius: 10px;
	background: #fff;
}

.ft-currency-flag {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

body.freditech-modern .ft-currency-control select {
	min-height: 42px;
	padding: 7px 30px 7px 0;
	border: 0 !important;
	background-color: transparent;
	color: var(--ft-shop-ink);
	font-size: 12px;
	font-weight: 900;
	box-shadow: none;
}

body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product > a.button,
body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product > a.added_to_cart {
	display: none !important;
}

body.freditech-modern .ft-commerce-main ul.products .price,
body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product .price,
body.single-product.freditech-modern .ft-commerce-main .upsells.products ul.products li.product .price {
	justify-content: center !important;
	text-align: center !important;
}

body.single-product.freditech-modern .ft-commerce-main .product.type-product {
	grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
	gap: clamp(22px, 2.4vw, 34px);
}

body.single-product.freditech-modern .ft-commerce-main div.product .product_title {
	font-size: clamp(20px, 1.8vw, 27px);
	line-height: 1.25;
	letter-spacing: -.022em;
}

body.single-product.freditech-modern .ft-commerce-main div.product .summary .price {
	font-size: clamp(23px, 2.1vw, 31px);
	line-height: 1.2;
}

body.single-product.freditech-modern .woocommerce-product-gallery {
	display: grid !important;
	grid-template-columns: 70px minmax(0, 1fr);
	grid-template-rows: auto;
	gap: 12px;
	align-items: start;
	overflow: visible;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-viewport {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	border-radius: 14px;
	overflow: hidden;
}

body.single-product.freditech-modern .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

body.single-product.freditech-modern .woocommerce-product-gallery__image img {
	width: 100%;
	max-height: 560px;
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	width: 70px;
	max-height: 560px;
	margin: 0 !important;
	padding: 0 4px 0 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs li {
	float: none !important;
	flex: 0 0 auto;
	width: 62px !important;
	height: 62px;
	margin: 0 !important;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 62px !important;
	height: 62px !important;
	padding: 2px;
	border: 1px solid #d8dee8;
	border-radius: 8px;
	background: #fff;
	object-fit: cover;
	opacity: .76;
	cursor: pointer;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs img:hover {
	border-color: var(--ft-shop-ink);
	box-shadow: 0 0 0 1px var(--ft-shop-ink);
	opacity: 1;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px !important;
	padding: 0 0 12px !important;
	border-bottom: 1px solid var(--ft-shop-line);
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs::before {
	display: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #c9d2df !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li::before,
body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li a {
	display: block;
	min-height: 42px;
	padding: 9px 14px !important;
	color: var(--ft-shop-ink) !important;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li.active {
	border-color: var(--ft-shop-ink) !important;
	background: var(--ft-shop-ink) !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li.active a {
	color: #fff !important;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel {
	position: relative;
	padding-top: 2px;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel.ft-tab-collapsible:not(.is-expanded) .ft-tab-content {
	position: relative;
	max-height: 500px;
	overflow: hidden;
}

body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel.ft-tab-collapsible:not(.is-expanded) .ft-tab-content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 92px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
	pointer-events: none;
}

body.single-product.freditech-modern .ft-commerce-main .ft-tab-more {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	margin: 14px auto 6px;
	padding: 8px 18px;
	border: 1px solid var(--ft-shop-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--ft-shop-ink);
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
}

body.single-product.freditech-modern .ft-commerce-main .ft-tab-more[hidden] {
	display: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .related.products ul.products li.product .price {
	display: flex !important;
	width: 100%;
	margin-inline: 0 !important;
	padding-inline: 8px;
}

@media (max-width: 1180px) {
	.ft-market-head__row {
		grid-template-columns: auto auto minmax(190px, 1fr) 150px auto;
	}
}

@media (max-width: 900px) {
	.ft-market-head__row {
		grid-template-columns: auto auto minmax(180px, 1fr) 46px 46px;
	}

	.ft-market-brand {
		grid-column: auto;
	}

	.ft-market-sort,
	.ft-currency-switcher {
		grid-column: auto;
	}

	.ft-market-sort label,
	.ft-currency-switcher label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0,0,0,0);
		white-space: nowrap;
		border: 0;
	}

	.ft-market-sort {
		position: relative;
		width: 46px;
		height: 44px;
		border: 1px solid var(--ft-shop-line);
		border-radius: 10px;
		background: #fff;
	}

	.ft-market-sort::before {
		content: "↕";
		position: absolute;
		inset: 0;
		display: grid;
		place-items: center;
		color: var(--ft-shop-ink);
		font-size: 18px;
		font-weight: 900;
		pointer-events: none;
	}

	body.freditech-modern .ft-market-sort select {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		opacity: 0;
		cursor: pointer;
	}

	.ft-currency-control {
		width: 46px;
		height: 44px;
		justify-content: center;
		padding: 0;
	}

	.ft-currency-flag {
		font-size: 20px;
	}

	body.freditech-modern .ft-currency-control select {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		padding: 0 !important;
		opacity: 0;
		cursor: pointer;
	}

	body.single-product.freditech-modern .ft-commerce-main .product.type-product {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product.freditech-modern .woocommerce-product-gallery {
		grid-template-columns: 1fr;
	}

	body.single-product.freditech-modern .woocommerce-product-gallery .flex-viewport,
	body.single-product.freditech-modern .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
		grid-column: 1;
		grid-row: 1;
	}

	body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 2;
		flex-direction: row;
		width: 100%;
		max-height: none;
		padding: 0 0 4px;
		overflow-x: auto;
		overflow-y: hidden;
	}
}

@media (max-width: 782px) {
	.ft-market-head__row {
		grid-template-columns: 70px 36px minmax(0, 1fr) 40px 40px !important;
		gap: 5px !important;
	}

	.ft-market-brand {
		grid-column: 1 !important;
	}

	.ft-market-categories {
		grid-column: 2 !important;
	}

	.ft-market-search {
		grid-column: 3 !important;
	}

	.ft-market-sort {
		grid-column: 4 !important;
		width: 40px;
		height: 36px;
	}

	.ft-currency-switcher {
		grid-column: 5 !important;
	}

	.ft-currency-control {
		width: 40px;
		height: 36px;
		min-height: 36px;
	}

	.ft-currency-flag {
		font-size: 19px;
	}

	body.freditech-modern .ft-commerce-main ul.products .price {
		justify-content: center !important;
		text-align: center !important;
	}

	body.single-product.freditech-modern .ft-commerce-main div.product .product_title {
		font-size: 20px;
	}
}

/* Custom ten-item related shelf replaces the parent theme's three-item block. */
body.single-product.freditech-modern .ft-commerce-main .related.products {
	display: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin-top: 34px;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products > h2 {
	margin: 0 0 18px;
	color: var(--ft-shop-ink);
	font-size: 22px;
	font-weight: 900;
	text-align: left;
	text-transform: none;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 12px !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products .woocommerce-loop-product__title {
	display: -webkit-box !important;
	min-height: 2.8em !important;
	max-height: 2.8em !important;
	overflow: hidden !important;
	line-height: 1.4 !important;
	text-align: left !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products .price {
	justify-content: center !important;
	text-align: center !important;
}

body.freditech-modern .ft-commerce-main .ft-loop-shipping {
	color: #13795b !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-tab-more {
	display: flex;
	width: max-content;
}

/* Version 1.9 — related-product imagery, subtle shop-more action, and scrollable gallery thumbs. */
body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products li.product {
	content-visibility: visible !important;
	contain: none !important;
	overflow: hidden !important;
	background: #fff !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products li.product > a.woocommerce-LoopProduct-link,
body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products li.product > a.woocommerce-loop-product__link {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products li.product img {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	margin: 0 0 8px !important;
	object-fit: cover !important;
	background: #fff !important;
}

body.freditech-modern .ft-related-more__button {
	border: 1px solid #071a3d !important;
	background: #fff !important;
	color: #071a3d !important;
	-webkit-text-fill-color: #071a3d !important;
	box-shadow: none !important;
}

body.freditech-modern .ft-related-more__button:hover,
body.freditech-modern .ft-related-more__button:focus-visible {
	border-color: #071a3d !important;
	background: #f5f7fb !important;
	color: #071a3d !important;
	-webkit-text-fill-color: #071a3d !important;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
	max-height: min(560px, 70vh);
	overflow-y: auto !important;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scroll-snap-type: y proximity;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs li {
	scroll-snap-align: start;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
	width: 6px;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
	border-radius: 99px;
	background: #9ba8ba;
}

body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track {
	background: #eef1f5;
}

@media (max-width: 900px) {
	body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs {
		max-height: none;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x proximity;
		scrollbar-gutter: auto;
	}

	body.single-product.freditech-modern .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
		width: auto;
		height: 6px;
	}
}

/* Version 2.0 — dependable related-product thumbnails and left-aligned card copy. */
body.single-product.freditech-modern .ft-commerce-main .ft-related-card {
	display: block !important;
	padding: 0 0 10px !important;
	overflow: hidden !important;
	border: 1px solid var(--ft-shop-line) !important;
	border-radius: 14px !important;
	background: #fff !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__link {
	display: block !important;
	width: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__media {
	position: relative;
	display: block !important;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f8fb;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__image {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	background: #fff !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 9px 10px 2px;
	text-align: left !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__title {
	display: -webkit-box;
	min-height: 2.8em;
	max-height: 2.8em;
	overflow: hidden;
	color: var(--ft-shop-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	text-align: left !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card .ft-loop-shipping {
	margin: 0 !important;
	text-align: left !important;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card__price {
	display: flex !important;
	justify-content: flex-start !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	color: #111827 !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	text-align: left !important;
	white-space: nowrap;
}

body.single-product.freditech-modern .ft-commerce-main .ft-related-card .ft-loop-deal-badge {
	top: auto !important;
	right: 8px !important;
	bottom: 8px !important;
}

@media (max-width: 782px) {
	body.single-product.freditech-modern .ft-commerce-main .ft-related-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	body.single-product.freditech-modern .ft-commerce-main .ft-related-card__title {
		font-size: 12px;
	}

	body.single-product.freditech-modern .ft-commerce-main .ft-related-card__price {
		font-size: 14px !important;
	}

	body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs {
		gap: 6px;
		margin-bottom: 14px !important;
	}

	body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs ul.tabs li a {
		min-height: 38px;
		padding: 8px 10px !important;
		font-size: 13px;
	}

	body.single-product.freditech-modern .ft-commerce-main .woocommerce-tabs .panel.ft-tab-collapsible:not(.is-expanded) .ft-tab-content {
		max-height: 380px;
	}

	body.single-product.freditech-modern .ft-commerce-main .ft-tab-more {
		min-height: 38px;
		margin-top: 12px;
		padding: 7px 16px;
		font-size: 12px;
	}
}

/* Version 2.1 — mobile shop cards match related-product readability. */
@media (max-width: 782px) {
	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .total-product-title-wrap {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		width: 100% !important;
		min-width: 0 !important;
		text-align: left !important;
	}

	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .woocommerce-loop-product__title {
		display: -webkit-box !important;
		min-height: 2.8em !important;
		max-height: 2.8em !important;
		margin: 0 8px 6px !important;
		overflow: hidden !important;
		font-size: 12px !important;
		line-height: 1.4 !important;
		text-align: left !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .ft-loop-shipping {
		align-self: flex-start !important;
		margin: 0 8px 7px !important;
		text-align: left !important;
	}

	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price {
		display: flex !important;
		width: calc(100% - 16px) !important;
		min-width: 0 !important;
		min-height: 22px !important;
		align-items: baseline !important;
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 3px !important;
		margin: 0 8px 8px !important;
		padding: 0 !important;
		overflow: visible !important;
		color: #111827 !important;
		font-size: clamp(12px, 3.4vw, 15px) !important;
		font-weight: 900 !important;
		letter-spacing: -.025em !important;
		line-height: 1.25 !important;
		text-align: left !important;
		white-space: nowrap !important;
	}

	/* Variable ranges: show the starting price only so large converted prices never clip. */
	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price > .woocommerce-Price-amount.amount + span[aria-hidden="true"],
	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price > .woocommerce-Price-amount.amount + span[aria-hidden="true"] + .woocommerce-Price-amount.amount {
		display: none !important;
	}

	/* Simple sale cards: prioritize the actual selling price on narrow screens. */
	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price > del {
		display: none !important;
	}

	body.freditech-modern.ft-commerce-page #primary-content.ft-commerce-main ul.products li.product .price > ins {
		text-decoration: none !important;
	}
}

