/**
 * =====================================================================
 * E-POTION — Legacy Styles (cleaned)
 * =====================================================================
 * Migrated from "Custom CSS & JS" plugin (now removable).
 *
 * Source: Indian dev's CSS, written for Woodmart originally,
 * cleaned for Shoptimizer + custom child header + functions.php refactor.
 *
 * Sections:
 *   1.  Global body fix
 *   2.  Back-to-top button (#backToTopBtn)
 *   3.  Single-post layout (.cust-post-banner, .cust-posts-list, etc.)
 *   4.  Interactive quiz (.quizmainbox, .quiz-section)
 *   5.  Product category page rich layout (#productCatinfo, #productBestsellers,
 *       #productCatFaq, #tipsSection, #buyerSection)
 *   6.  Internal linking — Related categories (#relatedCategories, light + gold)
 *   7.  Custom brand grid (.custom-brand-grid)
 *   8.  WooCommerce price font size
 *   9.  Updated-date display swap
 *   10. Blog & WC product table borders
 *   11. Elementor blockquotes
 *   12. Shoptimizer mobile filter override
 *   13. Mobile & Tablet responsive
 *
 * Removed in this cleanup:
 *   - body footer.copyright { padding: 0 0 110px } — caused white strip at
 *     bottom of every page (was reserving room for the deleted sticky menu).
 *   - All .stickyMenuLists* / .smenuLists* rules — sticky menu DOM is gone
 *     (sn_product_cat_StickyMenu deleted in functions.php refactor).
 *   - All .cat_gallery* / .cat_videos* / .video-item rules — image and
 *     video gallery sections removed from category page rendering.
 *   - All #imageGallery and #videoGallery references — sections gone.
 *   - Old #relatedCategories block (multi-column gray) — replaced by the
 *     new bulletproof light + gold block in section 6.
 *
 *   Original removals (legacy):
 *   - All .wd-* (Woodmart) selectors — dead code on Shoptimizer.
 *   - .post-wrap / .blog-main-list (Woodmart blog topbar mega menu).
 *   - body { padding-top: 140px } + #masthead { position: fixed }
 *     (conflicted with our custom child header; mega-menu.css handles
 *     mobile sticky behavior natively now).
 * =====================================================================
 */

/* ===================================================================
 * 1. Global body fix
 * =================================================================== */
body {
	overflow-x: hidden;
}


/* ===================================================================
 * 2. Back-to-top button
 *    Markup expected: <button id="backToTopBtn"><img src="..."></button>
 *    Toggled by JS via .show class on scroll.
 * =================================================================== */
#backToTopBtn {
	display: none;
	position: fixed;
	bottom: 100px;
	right: 37px;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	z-index: 9999;
	background: var(--ep-accent);
	width: 40px;
	height: 40px;
	border-radius: 50px;
	border: 0;
	cursor: pointer;
}
#backToTopBtn.show {
	display: block;
	opacity: 1;
}
#backToTopBtn img {
	max-width: 18px;
	margin: 0 auto;
}
#backToTopBtn:hover {
	background: var(--ep-accent-dark);
}


/* ===================================================================
 * 3. Single-post layout
 *    Custom Elementor markup classes injected in single-post.php
 *    or via Elementor templates: .cust-post-banner, .cust-breadcrub,
 *    .cust-posts-list, .post-cust-sidebar, .cus-cta-box, #toc-list,
 *    .post-faq, .related-posts-list, .single-post-social.postshareBtn
 * =================================================================== */
.single-post nav.woocommerce-breadcrumb {
	font-size: 0 !important;
}
.single-post nav.woocommerce-breadcrumb .breadcrumb-separator:last-child {
	display: none;
}
.single-post nav.woocommerce-breadcrumb a,
.single-post nav.woocommerce-breadcrumb span {
	font-size: 14px !important;
}
.single-post table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}
.single-post.postid-124367 [data-elementor-type="wp-post"] {
	margin-bottom: 0;
}
.cust-breadcrub.elementor-widget-woocommerce-breadcrumb {
	position: absolute;
	top: 10px;
	left: 60px;
}
.elementor-editor-active .cust-breadcrub.elementor-widget-woocommerce-breadcrumb {
	position: static;
}
.elementor-editor-active .cust-post-banner {
	margin-top: 131px;
}
.cust-post-banner p {
	margin-bottom: 10px;
}
.single-post .cust-post-banner {
	margin-top: 0;
}
.single-post .main-page-wrapper > .container-fluid,
.single-post main.site-main {
	width: 100%;
	padding-right: 0;
	padding-left: 0;
}
.single-post main#main-content {
	padding-top: 0;
}

/* Custom CTA box with decorative dotted shapes */

/* Sidebar with mini-products + nav */
.post-cust-sidebar .product-wrapper {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
}
.post-cust-sidebar .product-wrapper .product-element-bottom {
	width: calc(100% - 85px);
	text-align: left;
}
body .post-cust-sidebar .product-wrapper .price {
	margin-top: 0 !important;
}
.post-cust-sidebar .product-wrapper .product-image-link img {
	max-width: 65px;
}
.post-cust-sidebar .products .product {
	border-right: 0;
	border-top: 0;
	padding: 15px 0;
}
.post-cust-sidebar .products {
	border-left: 0;
}

/* TOC */
#toc-list {
	padding: 0;
	list-style: none;
}
#toc-list li a {
	position: relative;
	padding-left: 18px;
	display: inline-block;
	color: var(--ep-text-primary);
	text-decoration: underline;
	text-decoration-color: rgba(40, 40, 40, .35);
	text-underline-offset: 2px;
}
#toc-list li a:hover {
	text-decoration-color: rgba(40, 40, 40, 1);
}
#toc-list li a:before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	background: var(--ep-accent);
	width: 7px;
	height: 7px;
	border-radius: 10px;
}

/* Sticky CTA button */
#sticky-button .fixBtn {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 999;
	border-radius: 8px 8px 0 0 !important;
}

/* Related posts (Slick slider) */
.related-posts-list .slick-slide {
	padding: 0 13px;
}
.cust-posts-list {
	background: var(--ep-bg-page);
	border-radius: 7px;
	overflow: hidden;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .11);
	margin-bottom: 23px;
	transition: .4s;
	min-height: 266px;
}
.cust-posts-list .thumb img {
	width: 100%;
	height: 195px;
	object-fit: cover;
}
.cust-posts-list p,
.cust-posts-list .title {
	margin: 0;
}
.cust-posts-list p {
	padding: 14px 15px 0;
	line-height: 1.2;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
.cust-posts-list a.title:hover,
.cust-posts-list .title:hover p,
.cust-posts-list p:hover {
	color: var(--ep-text-primary) !important;
}
.cust-posts-list:hover p a {
	color: #1e68c4;
}
.related-posts-list .slick-arrow {
	width: 35px;
	height: 35px;
	border: 1px solid #2e6bc6;
	border-radius: 40px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 15' fill='none' stroke='%232e6bc6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1 7,7.5 1,14'/></svg>") no-repeat center;
	background-size: 8px 15px;
	margin-top: -30px;
}
.related-posts-list .slick-arrow:before {
	content: none;
}
.related-posts-list .slick-arrow.slick-prev {
	left: -40px;
	transform: rotate(180deg);
}
.related-posts-list .slick-arrow.slick-next {
	right: -40px;
}
.related-posts-list .slick-arrow:hover {
	background: #2e6bc6 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 15' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1 7,7.5 1,14'/></svg>") no-repeat center;
}
.single-post .related-posts-list ul.slick-dots {
	display: none !important;
}
.related-posts-list.relatedposts.slick-slider {
	margin-bottom: 0;
}
.elementor-editor-active .related-posts-list.relatedposts .cust-posts-list {
	width: calc(25% - 5px);
	display: inline-block;
	padding: 0 10px;
}

/* FAQ accordion (Elementor Pro nested accordion) */
.post-faq .e-n-accordion .e-n-accordion-item-title {
	justify-content: space-between;
}

/* Social share */
.single-post-social.postshareBtn .wd-social-icons,
.single-post-social.postshareBtn .elementor-social-icons-wrapper {
	text-align: left;
	margin: 0 0 25px;
	justify-content: flex-start;
}


/* ===================================================================
 * 4. Interactive quiz
 *    Markup: .quizmainbox > .quiz-section[#main-question | #q-A | etc.]
 *    JS: assets/legacy.js (handles .option click → show target section)
 * =================================================================== */
.quiz-section {
	display: none;
	padding: 30px 25px 35px;
	margin: 30px auto;
	border-radius: 12px;
	max-width: 850px;
	background: linear-gradient(to bottom, #2e6bc6 0px, #baf7f6 100%, #baf7f6);
	box-shadow: 0px 2px 18px 0px rgba(0, 0, 0, 0.3);
	border: 1px solid #ebd8ac;
}
.quiz-section.active {
	display: block;
}
.quizmainbox h3 {
	line-height: 1.3;
	margin: 0 auto 20px;
	text-align: center;
	max-width: 840px;
	color: var(--ep-bg-page);
}
.quizmainbox .option {
	cursor: pointer;
	margin: 10px auto;
	padding: 13px 20px 13px 55px;
	border: 1px solid var(--ep-border-default);
	border-radius: 50px;
	line-height: 1.2;
	background: var(--ep-bg-page);
	max-width: 590px;
	position: relative;
	text-align: left;
}
.quizmainbox .option:before {
	position: absolute;
	left: 25px;
	top: 12px;
	width: 20px;
	height: 20px;
	border: 2px solid var(--ep-border-default);
	border-radius: 20px;
	content: "";
}
.quizmainbox .option:after {
	position: absolute;
	left: 29px;
	top: 16px;
	width: 12px;
	height: 12px;
	background: var(--ep-accent);
	border-radius: 20px;
	content: "";
	opacity: 0;
}
.quizmainbox .option:hover:after {
	opacity: 1;
}
.quizmainbox .option:hover {
	background-color: var(--ep-bg-muted);
}
.quizmainbox .btn {
	margin-top: 20px;
	padding: 10px 26px;
	border: none;
	background-color: var(--ep-accent);
	color: var(--ep-bg-page);
	border-radius: 20px;
	cursor: pointer;
	font-size: 16px;
}
.solution {
	background: var(--ep-bg-page);
	padding: 22px 30px;
	margin-top: 10px;
	border-bottom: 4px solid #3370c8;
	border-radius: 12px;
	text-align: center;
}
.solution h4 {
	font-size: 24px;
	line-height: 1;
	color: #2e6bc6;
	margin: 0 0 10px;
	text-transform: uppercase;
}
.solution p {
	line-height: 1.4;
	font-size: 15px;
}


/* ===================================================================
 * 5. Product category page rich layout
 *    Sections rendered by epotion_product_cat_display_sections() in
 *    inc/category-customizations.php (woocommerce_after_shop_loop p40):
 *      #productCatinfo · #productBestsellers · #catReview ·
 *      #questionnairet · #productCatFaq · #tipsSection · #buyerSection
 *
 *    The internal-linking section (#relatedCategories + #catBlogpost)
 *    is in section 6 below.
 * =================================================================== */

/* Pagination — hidden by default, shown only at end-of-results */
.woocommerce-pagination {
	display: none;
}
.shoptimizer-sorting.sorting-end .woocommerce-pagination {
	display: block;
	margin: 30px auto;
	text-align: center;
}
.shoptimizer-sorting.sorting-end .woocommerce-result-count,
.shoptimizer-sorting.sorting-end form.woocommerce-ordering {
	display: none;
}
.woocommerce-pagination .page-numbers li .page-numbers {
	border: 1px solid var(--ep-border-default);
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	border-radius: 2px;
}
.woocommerce-pagination .page-numbers li .page-numbers.current,
.woocommerce-pagination .page-numbers li .page-numbers:hover {
	border-color: var(--ep-text-primary);
	background: var(--ep-text-primary);
	color: var(--ep-accent);
}
.woocommerce-pagination .page-numbers li .page-numbers:hover:after {
	background-color: var(--ep-accent);
}

/* Category info hero */
#productCatinfo {
	background: var(--ep-bg-muted);
	border-radius: 10px;
	border: 0;
	box-shadow: none;
	overflow: hidden;
	padding: 30px 25px;
}
#productCatinfo h2 {
	margin: 0;
}
#productCatinfo .below-woocommerce-category {
	margin: 15px 0 0;
	padding: 17px 0 0;
	border-top: 1px solid #83a7ce;
}

/* Category bestsellers */
#productBestsellers {
	margin: 45px 0 40px;
}
#productBestsellers li.best-seller-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
#productBestsellers ul {
	margin: 0;
}
#productBestsellers .product_image {
	width: 42%;
}
#productBestsellers .product_info {
	width: 50%;
	padding-left: 40px;
}
#productBestsellers h3.product-title {
	font-size: 20px;
	margin: 10px 0;
}
#productBestsellers h3.product-title a {
	color: var(--ep-text-primary);
}
#productBestsellers .product-price {
	margin: 0 0 12px;
	font-size: 19px;
}
#productBestsellers .product-price bdi {
	font-weight: bold;
}
.product-categories a {
	color: var(--ep-text-primary);
}
#productBestsellers .col-full,
#catReview .col-full {
	padding: 0;
}

/* Reviews + quiz section */
.catReview-section h2 {
	border-bottom: 1px solid var(--ep-border-default);
	padding: 0 0 10px;
	margin: 0 0 20px;
}
.questionnairet-section {
	margin: 40px auto 85px;
	max-width: 850px;
	text-align: center;
}
.questionnairet-section .quiz-section {
	max-width: unset;
	margin: 10px 0 35px;
}

/* Category FAQ box */
#productCatFaq .col-full {
	background: #edf3fb;
	padding: 60px 45px;
	border-radius: 10px;
	margin: 0 auto 40px;
	border: 1px solid #d3ddeb;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	max-width: 1080px;
}
#productCatFaq li.cat-faq-list {
	border: 1px solid var(--ep-border-default);
	border-radius: 4px;
	background: var(--ep-bg-page);
	padding: 0;
	overflow: hidden;
}
#productCatFaq .faq_content {
	padding: 0px 18px 10px;
	margin: 12px 0 0;
}
#productCatFaq .cat-faq-list h3 {
	font-size: 17px;
	padding: 11px 34px 11px 18px;
}
#productCatFaq .faq_content p {
	margin: 0 0 8px;
}
#productCatFaq li.cat-faq-list h3:hover,
#productCatFaq li.cat-faq-list.active h3 {
	color: var(--ep-bg-page);
	background: #1e68c4;
}
#productCatFaq .cat-faq-list h3::after {
	font-size: 30px;
	line-height: 1;
	font-weight: normal;
	top: 10px;
	right: 13px;
}
#productCatFaq li.cat-faq-list.active h3::after {
	top: 6px;
}

/* FAQ — base toggle styles (used inside #productCatFaq + product page FAQs) */
.cat-faqlists {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cat-faq-list {
	margin-bottom: 15px;
	border-bottom: 1px solid var(--ep-border-default);
	padding: 10px 0;
}
.cat-faq-list h3 {
	cursor: pointer;
	margin: 0;
	font-size: 18px;
	position: relative;
}
.cat-faq-list h3::after {
	content: '+';
	position: absolute;
	right: 0;
	font-size: 20px;
	transition: transform 0.3s;
}
.cat-faq-list.active h3::after {
	content: '-';
}
.cat-faq-list .faq_content {
	padding: 10px;
	display: none;
	margin-top: 8px;
	transform: translateY(-100%);
	transition: all 0.5s ease-in-out;
}
.cat-faq-list.active .faq_content {
	display: block;
	transform: translateY(0);
	transition: all 0.5s ease-in-out;
}

/* Tips & buyer's guide boxes */
#tipsSection .col-full,
#buyerSection .col-full {
	max-width: 1080px;
	margin: 0 auto 40px;
	padding: 45px 45px 30px;
	border-radius: 10px;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
#tipsSection .col-full {
	background: var(--ep-accent-soft);
	border: 1px solid var(--ep-accent-soft);
}
#buyerSection .col-full {
	background: #edf3fb;
	border: 1px solid #d1e1f5;
}
.cat-tipslists h3,
.cat-buyer-list h3 {
	line-height: 1.3;
	margin: 0 0 3px;
	font-size: 19px;
}
.cat-tipslists li,
.cat-buyerlists li {
	list-style: none;
	position: relative;
	padding-left: 21px;
	margin: 0 0 12px;
}
.cat_tips ul.cat-tipslists,
.cat-buyerlists {
	margin: 0;
}
.cat-tipslists li:before,
.cat-buyerlists li:before {
	content: "";
	position: absolute;
	left: 5px;
	top: 6px;
	width: 8px;
	height: 8px;
	background: var(--ep-accent-dark);
	border-radius: 10px;
}
.cat-section .cat-buyerlists li:before {
	background: #7796bf;
}

/* Generic spacing for all .cat-section rendered blocks */
.cat-section {
	margin: 50px 0;
}

body.archive.tax-product_cat #primary h2 {
	margin: 0 0 15px;
	line-height: 1.2;
}

#catBlogpost h2 {
	text-align: center;
}
.add-to-cart .added_to_cart.wc-forward {
	margin-left: 15px;
	color: var(--ep-text-primary);
	text-decoration: underline;
}


/* ===================================================================
 * 6. Internal linking — Related categories
 *    Rendered by epotion_product_cat_internal_linking() at the very
 *    bottom of every product category page (woocommerce_after_main_content
 *    priority 999). Light theme with gold accents — bulletproof CSS,
 *    no gradients or CSS variables (Autoptimize-safe).
 * =================================================================== */
#relatedCategories {
	margin: 50px 0 30px;
	padding: 0;
}

#relatedCategories .col-full {
	max-width: 1240px;
	margin: 0 auto 16px;
	padding: 0 24px;
}

#relatedCategories .related-category-group {
	background-color: var(--ep-bg-page);
	border: 1px solid var(--ep-border-default);
	border-radius: 14px;
	padding: 26px 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	max-height: 460px;
	overflow-y: auto;
}

#relatedCategories .related-category-group h2,
#relatedCategories .related-category-group h3 {
	position: relative;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	padding: 0 0 14px;
	line-height: 1.3;
	color: #1a1a20;
	border-bottom: 1px solid var(--ep-border-default);
}

#relatedCategories .related-category-group h2::after,
#relatedCategories .related-category-group h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 60px;
	height: 3px;
	background-color: #d4af37;
}

#relatedCategories ul.related-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

#relatedCategories ul.related-category-list li {
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

#relatedCategories ul.related-category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background-color: var(--ep-bg-page);
	border: 1px solid var(--ep-border-default);
	border-radius: 8px;
	padding: 13px 16px;
	color: #1a1a20;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	min-height: 56px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#relatedCategories ul.related-category-list a:hover {
	background-color: #fffaeb;
	border-color: #d4af37;
	color: #8a6f15;
	box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

#relatedCategories ul.related-category-list a::after {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-top: 2px solid #d4af37;
	border-right: 2px solid #d4af37;
	transform: rotate(45deg);
}

#relatedCategories ul.related-category-list a:hover::after {
	border-top-color: #8a6f15;
	border-right-color: #8a6f15;
}

#relatedCategories ul.related-category-list li.active a {
	background-color: #d4af37;
	border-color: #d4af37;
	color: #1a1a20;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

#relatedCategories ul.related-category-list li.active a::after {
	border-top-color: #1a1a20;
	border-right-color: #1a1a20;
}

#relatedCategories .related-category-group::-webkit-scrollbar {
	width: 8px;
}
#relatedCategories .related-category-group::-webkit-scrollbar-track {
	background-color: var(--ep-bg-surface);
}
#relatedCategories .related-category-group::-webkit-scrollbar-thumb {
	background-color: var(--ep-border-default);
	border-radius: 8px;
}
#relatedCategories .related-category-group::-webkit-scrollbar-thumb:hover {
	background-color: #d4af37;
}


/* ===================================================================
 * 7. Custom brand grid
 *    Markup: .custom-brand-grid > .brand-item > .brand-name
 * =================================================================== */
.custom-brand-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
	margin: 20px 0;
}
.brand-item {
	text-align: center;
}
.brand-item img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 10px;
}
.brand-name {
	font-size: 1.2em;
	margin: 10px 0;
}
.brand-name a {
	text-decoration: none;
	color: inherit;
}
.brand-name a:hover {
	opacity: 0.8;
}


/* ===================================================================
 * 8. WooCommerce price font size (single product)
 * =================================================================== */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 20px;
	font-weight: bold;
}


/* ===================================================================
 * 9. Updated-date display swap
 *    Hides "published" date, shows "updated" — for SEO freshness signal.
 * =================================================================== */
.entry-date.published:not(.updated) {
	display: none;
}
.updated:not(.published) {
	display: inline;
}


/* ===================================================================
 * 10. Blog & WC product table borders
 *     Adds clean table borders to Elementor text widgets and the
 *     WooCommerce product description tab.
 * =================================================================== */
.elementor-widget-text-editor table,
.woocommerce div.product .woocommerce-product-details__short-description table,
.woocommerce div.product .woocommerce-tabs .panel table,
.woocommerce-Tabs-panel--description table {
	border-collapse: collapse !important;
	width: 100% !important;
}
.elementor-widget-text-editor table td,
.elementor-widget-text-editor table th,
.woocommerce div.product .woocommerce-product-details__short-description table td,
.woocommerce div.product .woocommerce-product-details__short-description table th,
.woocommerce div.product .woocommerce-tabs .panel table td,
.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce-Tabs-panel--description table td,
.woocommerce-Tabs-panel--description table th {
	border: 1px solid var(--ep-border-default) !important;
	padding: 8px 12px !important;
	text-align: left !important;
	vertical-align: top !important;
}
.elementor-widget-text-editor table th,
.woocommerce div.product .woocommerce-product-details__short-description table th,
.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce-Tabs-panel--description table th {
	background-color: var(--ep-bg-surface) !important;
	font-weight: 600 !important;
}

/* ===================================================================
 * 10b. List bullets and numbers in description areas
 *      Shoptimizer resets list-style to none globally. Without this
 *      fix, ul/ol inside product descriptions and the description tab
 *      have indented space (from padding-left) but no visible bullet.
 * =================================================================== */
.woocommerce div.product .woocommerce-product-details__short-description ul,
.woocommerce div.product .ep-short-desc ul,
.woocommerce-Tabs-panel--description ul,
.woocommerce div.product .woocommerce-tabs .panel ul,
.elementor-widget-text-editor ul {
	list-style: disc;
	padding-left: 1.4em;
	margin: 6px 0;
}

.woocommerce div.product .woocommerce-product-details__short-description ol,
.woocommerce div.product .ep-short-desc ol,
.woocommerce-Tabs-panel--description ol,
.woocommerce div.product .woocommerce-tabs .panel ol,
.elementor-widget-text-editor ol {
	list-style: decimal;
	padding-left: 1.4em;
	margin: 6px 0;
}

.woocommerce div.product .woocommerce-product-details__short-description li,
.woocommerce div.product .ep-short-desc li,
.woocommerce-Tabs-panel--description li,
.woocommerce div.product .woocommerce-tabs .panel li,
.elementor-widget-text-editor li {
	margin-bottom: 4px;
	line-height: 1.55;
}

/* Nested lists — second level gets a hollow bullet, third gets a square */
.woocommerce div.product .woocommerce-product-details__short-description ul ul,
.woocommerce div.product .ep-short-desc ul ul,
.woocommerce-Tabs-panel--description ul ul {
	list-style: circle;
	margin: 3px 0;
}

.woocommerce div.product .woocommerce-product-details__short-description ul ul ul,
.woocommerce div.product .ep-short-desc ul ul ul,
.woocommerce-Tabs-panel--description ul ul ul {
	list-style: square;
}


/* ===================================================================
 * 11. Elementor blockquotes
 * =================================================================== */
.elementor-widget-text-editor blockquote {
	border-left: 4px solid #e0a800 !important;
	background-color: var(--ep-bg-surface) !important;
	margin: 1.5em 0 !important;
	padding: 14px 20px !important;
	border-radius: 3px !important;
	font-style: italic !important;
	color: var(--ep-text-secondary) !important;
}
.elementor-widget-text-editor blockquote p {
	margin: 0 !important;
	font-size: 1em !important;
	line-height: 1.7 !important;
}


/* ===================================================================
 * 12. Shoptimizer mobile filter override
 *     Disables the floating mobile-filter button on tablet/below.
 * =================================================================== */
@media (max-width: 992px) {
	.mobile-filter.shoptimizer-mobile-toggle {
		position: static !important;
		bottom: auto !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: auto !important;
		z-index: auto !important;
		transform: none !important;
		-webkit-transform: none !important;
		box-shadow: none !important;
		margin: 0 0 16px 0 !important;
		display: block !important;
	}
}


/* ===================================================================
 * 13. Mobile & Tablet responsive
 * =================================================================== */

@media (min-width: 1025px) {
	.single-post .scrollToTop {
		bottom: 60px;
	}
}

/* --- Tablet (≤1024px) --- */
@media only screen and (max-width: 1024px) {

	/* Single-post layout */
	.elementor-element.cust-post-banner {
		flex-direction: row;
	}
	.cust-posts-list .thumb img {
		height: 150px;
	}
	.cust-posts-list p {
		font-size: 15px;
	}
	.related-posts-list .slick-slide {
		padding: 0 8px;
	}
	.related-posts-list .slick-arrow.slick-prev {
		left: -10px;
	}
	.related-posts-list .slick-arrow.slick-next {
		right: -10px;
	}
	.related-posts-list .slick-arrow {
		width: 22px;
		height: 22px;
	}

	/* Related categories — 3 columns on tablet */
	#relatedCategories ul.related-category-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- Mobile (≤767px) --- */
@media only screen and (max-width: 767px) {

	/* Quiz */
	.quiz-section {
		padding: 20px 15px 35px;
		margin: 20px auto 0;
	}
	.quizmainbox h3 {
		margin: 0 auto 15px;
		font-size: 20px;
	}
	.quizmainbox .option {
		font-size: 14px;
		padding: 13px 15px 13px 30px;
		border-radius: 6px;
	}
	.quizmainbox .option:before {
		left: 9px;
		top: 50%;
		transform: translateY(-50%);
		width: 16px;
		height: 16px;
	}
	.quizmainbox .option:after {
		left: 13px;
		top: 50%;
		transform: translateY(-50%);
		width: 8px;
		height: 8px;
	}
	.quizmainbox .btn {
		padding: 10px 20px;
		font-size: 12px;
	}
	.solution {
		padding: 22px 20px;
	}
	.solution h4 {
		font-size: 20px;
		margin: 0 0 8px;
		color: #2ea3f2;
	}

	/* Single-post layout */
	.single-post .cust-post-banner {
		margin-top: 0;
	}
	body.single-post .elementor-widget-woocommerce-breadcrumb .elementor-widget-container {
		padding: 0 !important;
		margin: 0 !important;
	}
	.cust-post-banner .elementor-button {
		width: 100%;
	}
	nav.woocommerce-breadcrumb {
		line-height: 1.3;
	}
	.single-post .elementor-widget-woocommerce-breadcrumb {
		top: auto !important;
		bottom: 0;
		background: var(--ep-border-default);
		left: 0 !important;
		right: 0;
		padding: 10px 15px;
	}
	.cust-posts-list {
		min-height: 166px;
		margin-bottom: 15px;
	}
	.cust-posts-list p {
		padding: 10px 8px 0;
		font-size: 14px;
	}
	.related-posts-list .slick-slide {
		padding: 0 8px;
	}
	.cust-posts-list .thumb img {
		height: 115px;
	}
	.related-posts-list .slick-arrow.slick-prev {
		left: -13px;
	}
	.related-posts-list .slick-arrow.slick-next {
		right: -13px;
	}
	.related-posts-list .slick-arrow:hover,
	.related-posts-list .slick-arrow {
		width: 20px;
		height: 20px;
		background-size: 5px 9px;
		margin-top: -20px;
	}
	.elementor-editor-active .related-posts-list.relatedposts .cust-posts-list {
		width: calc(50% - 5px);
	}
	#sticky-button .fixBtn {
		bottom: 0;
	}
	.sticky-toolbar-on .scrollToTop {
		bottom: 115px;
	}

	/* Product category */
	.product_info .add-to-cart a.button.add_to_cart_button {
		padding: 8px 14px;
		font-size: 13px;
	}
	.add-to-cart .added_to_cart.wc-forward {
		margin-left: 11px;
		font-size: 13px;
	}
	.questionnairet-section {
		margin: 40px auto 0;
	}
	#productCatFaq .col-full {
		padding: 40px 20px;
	}
	#tipsSection .col-full,
	#buyerSection .col-full {
		margin: 0;
		padding: 40px 25px 30px;
	}
	#tipsSection {
		margin: 0;
	}

	/* Related categories — 2 columns + tighter spacing on mobile */
	#relatedCategories {
		margin: 40px 0 20px;
	}
	#relatedCategories .col-full {
		padding: 0 16px;
	}
	#relatedCategories ul.related-category-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	#relatedCategories .related-category-group {
		padding: 20px 18px;
		border-radius: 12px;
		max-height: 380px;
	}
	#relatedCategories .related-category-group h2,
	#relatedCategories .related-category-group h3 {
		font-size: 17px;
		margin: 0 0 14px;
		padding: 0 0 10px;
	}
	#relatedCategories ul.related-category-list a {
		padding: 11px 13px;
		font-size: 13px;
		min-height: 50px;
	}
}

/* --- Brand grid: 4 columns on tablet+ --- */
@media screen and (min-width: 768px) {
	.custom-brand-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* =====================================================================
 * Product page sticky tab nav (#product-tab-menu)
 * Migrated from inline <style> in inc/product-page.php during Step 6.
 * ===================================================================== */
.product-tab-menu {
	width: 100%;
	background: var(--ep-bg-page);
	z-index: 9999;
	transition: all 0.3s ease;
}
.product-tab-menu.sticky .psubmenu {
	position: fixed;
	top: 60px;
	left: 0;
	right: 0;
	box-shadow: 0 4px 10px rgba(0,0,0,.08);
	z-index: 99;
	background: var(--ep-bg-page);
	width: 100%;
	margin: 0;
}
ul.psubmenu {
	display: flex;
	gap: 20px;
	justify-content: center;
}
ul.psubmenu li {
	list-style: none;
}
@media only screen and (max-width: 767px) {
	.product-tab-menu.sticky .psubmenu { top: 120px; }
}
/* ==========================================================================
   WCAG 1.4.1 — Links in body text must be underlined
   ==========================================================================
   mega-menu.css resets: .ep-site a { text-decoration: none }
   This removes underlines from ALL links sitewide (intentional for nav,
   cards, buttons). But links embedded in flowing paragraph text must be
   distinguishable without relying on color alone — Lighthouse audit
   "Links rely on color to be distinguishable".

   This ruleset re-adds underlines specifically in content areas where
   an <a> tag is inside running prose (not a standalone card/button link).
   ========================================================================== */

.below-woocommerce-category a:not(.button):not(.ep-pc-cart-btn):not([class^="ep-"]),
.product-cat-info a:not(.button),
.cat_faq-content a:not(.button),
.cat_tips a:not(.button),
.cat_buyer a:not(.button),
.questionnairet-content a:not(.button),
.ep-faq-answer a:not(.button),
.entry-content a:not(.button),
.woocommerce-product-details__short-description a:not(.button),
.woocommerce-Tabs-panel--description a:not(.button),
.woocommerce-Tabs-panel--additional_information a:not(.button),
.epotion-settings-body a:not(.button),
.ep-auth-google-disclaimer a,
.ep-auth-consents a {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: currentColor;
}


/* ===================================================================
 * 15. Product card hierarchy — WC default loop cards
 *
 * Improves scan-ability by making PRICE the dominant element and
 * demoting title to secondary. ATC buttons are NOT touched — they
 * stay exactly as the Shoptimizer parent theme renders them.
 *
 * UX rules enforced:
 *   R35 — Price is the dominant scan element (largest, boldest)
 *   R46 — Sale badge isolates the priority (Von Restorff)
 *   R85 — All text passes WCAG AA contrast
 *
 * Scope: .woocommerce ul.products li.product
 *   ✓ Category archives, shop page, search results, tag archives,
 *     related products, upsells, cross-sells
 *   ✗ #productBestsellers (ID specificity wins — untouched)
 *   ✗ .ep-pc-card carousel cards (different class structure)
 *   ✗ .ep-product single product page (different selectors)
 *
 * NOT modified: .button, .add_to_cart_button, a.button — zero changes
 * to add-to-cart button size, padding, width, color, or behavior.
 *
 * Added 2026-05-31 — Fix 1.4 card hierarchy
 * =================================================================== */

/* --- Title: secondary weight, clamp to 2 lines --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--ep-font-sm);
	font-weight: var(--ep-weight-regular);
	color: var(--ep-text-secondary);
	line-height: var(--ep-leading-snug);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: var(--ep-space-1);
}

/* --- Price: dominant scan element --- */
.woocommerce ul.products li.product .price {
	font-size: var(--ep-font-lg);
	font-weight: var(--ep-weight-bold);
	color: var(--ep-text-primary);
	line-height: var(--ep-leading-snug);
	margin-bottom: var(--ep-space-2);
}

/* Currency symbol slightly smaller for visual balance */
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-size: 0.8em;
	font-weight: var(--ep-weight-semibold);
}

/* Struck-through original price on sale items */
.woocommerce ul.products li.product .price del {
	font-size: var(--ep-font-sm);
	font-weight: var(--ep-weight-regular);
	color: var(--ep-text-disabled);
	margin-right: var(--ep-space-1);
}

/* Sale price — remove underline, keep bold from .price */
.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	font-weight: var(--ep-weight-bold);
}

/* --- "TVA inclus" text: mute to not compete with price (R35) --- */
.woocommerce ul.products li.product .price .tax_label,
.woocommerce ul.products li.product .price .woocommerce-price-suffix {
	font-size: 10px;
	font-weight: var(--ep-weight-regular);
	color: var(--ep-text-disabled);
	display: block;
	line-height: 1.3;
	margin-top: 1px;
}

/* --- Sale badge on product image (R46 Von Restorff) --- */
.woocommerce ul.products li.product .onsale {
	background: var(--ep-danger);
	color: #fff;
	font-size: var(--ep-font-xs);
	font-weight: var(--ep-weight-bold);
	border-radius: var(--ep-radius-sm);
	padding: 3px 8px;
	line-height: 1.3;
}

/* --- Star rating: muted to not compete with price --- */
.woocommerce ul.products li.product .star-rating {
	font-size: var(--ep-font-xs);
	margin-bottom: var(--ep-space-1);
}

/* --- "View cart" link after AJAX add — muted secondary (R71) --- */
.woocommerce ul.products li.product .added_to_cart.wc-forward {
	font-size: var(--ep-font-xs);
	color: var(--ep-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Mobile refinement --- */
@media (max-width: 767px) {
	.woocommerce ul.products li.product .price {
		font-size: 16px;
	}
}