/*
Theme Name: Blocksy Child
Description: Child theme of Blocksy for Congxepdtc - Cổng Xếp Store
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/* ===================================
   BREADCRUMB SECTION
   =================================== */

.section-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
}

.section-breadcrumb .e-con-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0px;
}

.breadcrumb-container {
    padding: 12px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-family: var(--font-family-family-sans, Inter);
    font-size: 14px;
    line-height: 1.5;
}

/* Breadcrumb Items */
.breadcrumb-item {
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb-item.home {
    color: #A3A3A3; /* Gray for home link */
    font-weight: 400;
}

.breadcrumb-item.home:hover {
    color: #5B8DEE;
    text-decoration: underline;
}

.breadcrumb-item.category {
    color: #A3A3A3; /* Gray for category */
    font-weight: 400;
}

.breadcrumb-item.category:hover {
    color: #5B8DEE;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: #333; /* Dark gray for current page title */
    font-weight: 600;
}

/* Separator */
.breadcrumb-separator {
    color: #A3A3A3;
    margin: 0 8px;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .section-breadcrumb .e-con-inner {
        padding: 0 16px;
    }
    
    .breadcrumb-container {
        padding: 10px 0;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    .breadcrumb-item.current {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}


/* Khung form */
.tt-contact.red{          /* màu đỏ nền */
  padding: 26px 30px 30px 30px;   /* giống ảnh: khoảng cách trong */
  border-radius: 0;               /* vuông góc như ảnh */
}

.tt-field p label {
	  color: #fff;
}
/* Nhóm field */
.tt-contact .tt-field{ margin-bottom: 22px; }

/* Label */
.tt-contact .tt-field > label{
  display:block;
  color:#fff;
  font-weight:700;
  margin:0 0 10px;
}

/* Control chung */
.tt-contact .wpcf7-form-control{
  width:100%;
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius:2px;
  padding:14px 18px;
  font-size:16px;
  line-height:1.4;
  color:#111;
  box-shadow:none;
}
.tt-contact textarea.wpcf7-form-control{
  min-height: 150px;              /* khung mô tả cao như ảnh */
  resize: vertical;
}

/* Placeholder màu xám nhạt */
.tt-contact .wpcf7-form-control::placeholder{
  color:#b7bcc3;
  opacity:1;
}

/* Nút gửi */
.tt-contact .wpcf7-submit{
  background:#fff;
  color:#a94444;
  border:0;
  padding:12px 22px;
  border-radius:2px;
  font-weight:700;
  cursor:pointer;
  transition:filter .2s ease, opacity .2s ease;
}
.tt-contact .wpcf7-submit:hover{
	background:#a94444;
	color:#fff;
	 filter:brightness(0.97); 
}

/* Trạng thái lỗi/OK của CF7 */
.tt-contact .wpcf7-not-valid{ border-color:#dc2626; }
.tt-contact .wpcf7-not-valid-tip{ color:#ffe; } /* nếu muốn ẩn tip: display:none; */

.tt-contact .wpcf7-response-output{
  margin:14px 0 0;
  border:1px dashed rgba(255,255,255,.6);
  color:#fff;
  background:transparent;
}

/* Mobile tinh chỉnh chút */
@media (max-width: 575px){
  .tt-contact.red{ padding:18px; }
}

/* Archive Page Grid Layout - 4 Columns like Elementor Products */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    justify-content: center;
	gap: 20px;
}


.archive-posts-grid .post-item  {
	margin: 0;
}
/* Responsive Grid */
@media (max-width: 1440px) {
    .archive-posts-grid {
        grid-template-columns: repeat(3, 300px);
    }
}

@media (max-width: 1024px) {
    .archive-posts-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 20px;
    }
    
}

@media (max-width: 768px) {
    .archive-posts-grid {
        grid-template-columns: 300px;
        gap: 16px;
    }
    
    .archive-page-wrapper {
        padding: 30px 16px;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    .archive-post-item .post-image {
        height: 200px;
    }
}

@media (max-width: 360px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-post-item {
        width: 100%;
    }
}

/* ========================================
   CUSTOM PAGINATION STYLES (All Pages)
   ======================================== */

/* General Pagination Container */
.pagination,
.nav-links,
.woocommerce-pagination,
.archive-pagination,
.ct-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    font-family: 'Inter', sans-serif;
}

/* Page Numbers & Navigation Links */
.pagination a,
.pagination span,
.nav-links a,
.nav-links span,
.woocommerce-pagination a,
.woocommerce-pagination span,
.archive-pagination a,
.archive-pagination span,
.ct-pagination a,
.ct-pagination span,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    color: #4B5563;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
}

/* Hover State */
.pagination a:hover,
.nav-links a:hover,
.woocommerce-pagination a:hover,
.archive-pagination a:hover,
.ct-pagination a:hover,
.page-numbers:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    color: #1F2937;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Current/Active Page */
.pagination .current,
.nav-links .current,
.woocommerce-pagination .current,
.archive-pagination .current,
.ct-pagination .current,
.page-numbers.current {
    background: #421AFF !important;
    color: white !important;
    border-color: #421AFF !important;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* Previous/Next Buttons with Text */
.pagination .prev,
.pagination .next,
.nav-links .nav-previous a,
.nav-links .nav-next a,
.woocommerce-pagination .prev,
.woocommerce-pagination .next,
.ct-pagination .prev,
.ct-pagination .next {
    padding: 0 16px;
    font-weight: 600;
    min-width: auto;
}

/* Prev/Next Arrow Icons */
.pagination .prev:before,
.ct-pagination .prev:before,
.page-numbers.prev:before {
    content: "←";
    margin-right: 6px;
}

.pagination .next:after,
.ct-pagination .next:after,
.page-numbers.next:after {
    content: "→";
    margin-left: 6px;
}

/* Disabled State */
.pagination .disabled,
.nav-links .disabled,
.woocommerce-pagination .disabled,
.ct-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots/Ellipsis */
.pagination .dots,
.nav-links .dots,
.woocommerce-pagination .dots,
.page-numbers.dots {
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: default;
    pointer-events: none;
}

/* Vietnamese Text Support */
.pagination a[href*="prev"],
.pagination a[href*="next"],
.ct-pagination a[href*="prev"],
.ct-pagination a[href*="next"] {
    text-transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination,
    .nav-links,
    .woocommerce-pagination,
    .archive-pagination,
    .ct-pagination {
        gap: 4px;
        margin: 30px 0;
    }
    
    .pagination a,
    .pagination span,
    .nav-links a,
    .nav-links span,
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 8px;
    }
    
    /* Hide text on mobile, show only arrows */
    .pagination .prev span,
    .pagination .next span,
    .ct-pagination .prev span,
    .ct-pagination .next span {
        display: none;
    }
}

/* Archive Pagination Override (for your custom archive.php) */
.archive-pagination {
    margin-top: 50px !important;
}

.archive-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
}

/* Blocksy Theme Override */
.ct-pagination-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.ct-pagination {
    display: flex;
    gap: 8px;
}

/* WooCommerce Pagination Override */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.woocommerce-pagination ul.page-numbers li {
    margin: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: #421AFF;
    color: white;
    border-color: #421AFF;
    font-weight: 600;
}

.support_title h4{
	color: var(--white-800, rgba(255, 255, 255, 0.80));
	text-align: center;

	/* Text - xLarge/semibold */
	font-family: var(--font-family-family-body, Inter);
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 26px; /* 144.444% */
	letter-spacing: 0.045px;
}

.support_des h2 {
	color: var(--white-950, #FFF);
	text-align: center;

	/* Heading - Desktop/h2 */
	font-family: var(--font-family-family-display, Inter);
	font-size: 36px;
	font-style: normal;
	font-weight: 600;
	line-height: 44px; /* 122.222% */
	letter-spacing: -0.72px;
	text-transform: uppercase;
}

.btn-1 .elementor-button {
	background: var(--brand-red-600-base, #BA343B);
}
.btn-2 .elementor-button {
	border: 1px solid var(--white-950, #FFF);
	background: var(--white-200, rgba(255, 255, 255, 0.20));
}

.heading-page h2{
	text-align: center;

	/* Heading - Desktop/h2 */
	font-family: var(--font-family-family-display, Inter);
	font-size: 36px;
	font-style: normal;
	font-weight: 600;
	line-height: 54px; /* 122.222% */
	letter-spacing: -0.72px;
	text-transform: uppercase;
	background: var(--Heading-Styles, linear-gradient(90deg, var(--700, #3109F8) 0%, var(--500, #5641FF) 100%));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

footer {
	color: var(--white-800, rgba(255, 255, 255, 0.80));

	/* Text - Medium/semibold */
	font-family: var(--font-family-family-body, Inter);
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	line-height: 22px; /* 157.143% */
}
.footer_heading_1 h4 {
	text-align: center;

	font-family: var(--font-family-family-display, Inter);
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 32px; /* 133.333% */
	letter-spacing: -0.24px;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--brand-red-600-base, #BA343B) 0%, var(--brand-red-900, #78232F) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.footer_heading_1 h5 {
	color: var(--white-950, #FFF);

	/* Text - Small/semibold */
	font-family: var(--font-family-family-body, Inter);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 18px; /* 150% */
	margin-bottom:12px;
}

.h-center h6{
	color: var(--white-950, #FFF);

/* Text - Small/semibold */
font-family: var(--font-family-family-body, Inter);
font-size: 12px;
font-style: normal;
font-weight: 600;
line-height: 18px; /* 150% */
}

.footer_2 h5 {
	color: var(--brand-red-600-base, #BA343B);

/* Text - Medium/semibold */
font-family: var(--font-family-family-body, Inter);
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 22px; /* 157.143% */
}
.box {
	border: 1px solid var(--grey-200, #E4E4E7);
background: #FFF;
padding:20px;
/* Shadow/medium */
box-shadow: 0 12px 16px -4px rgba(2, 6, 23, 0.16), 0 4px 6px -2px rgba(2, 6, 23, 0.08);
}

/* Khung & tiêu đề */
.tt-cat-widget{
  border:1px solid #d9d9d9; border-radius:4px; background:#fff;
  max-width: 320px; /* tùy layout của bạn */
}
.tt-cat-header{
  display:flex; align-items:center; justify-content:space-between;
  background:#a63d3d; color:#fff; padding:12px 16px; font-weight:700; border-radius:4px 4px 0 0;
}
.tt-cat-header .tt-cat-caret{
  width: 0; height: 0; border-left:6px solid transparent; border-right:6px solid transparent;
  border-top:6px solid #fff;
}

/* Danh sách */
.tt-cat-list{ list-style:none; margin:0; padding:0; }
.tt-cat-list > li{ border-bottom:1px solid #eee; }
.tt-cat-list > li:last-child{ border-bottom:none; }
.tt-cat-list a{
  display:block; padding:10px 14px; text-decoration:none; color:#222; font-weight:600;
}

/* Highlight danh mục đang xem (và cha/ancestor của nó) */
.tt-cat-list .current-cat > a,
.tt-cat-list .current-cat-parent > a,
.tt-cat-list .current-cat-ancestor > a{
  background:#ecebff;           /* nền tím nhạt như ảnh */
  border-left:3px solid #7f56d9; /* vạch nhấn trái */
  color:#421AFF; font-weight:700;
}

/* Hover */
.tt-cat-list a:hover{ background:#f7f7f7; }

ul.products {
	grid-row-gap: 20px;
}

/* (tuỳ chọn) khoảng cách hàng/cột nếu muốn đồng nhất */
.elementor .elementor-products-grid ul.products.elementor-grid{
  grid-column-gap: 20px;
  grid-row-gap: 40px;
}

/* Sticky cho widget danh mục của shortcode */
.tt-cat-widget{
  position: sticky;
  top: var(--tt-sticky-top, 88px);  /* khoảng cách so với đỉnh màn hình */
  z-index: 5;
}

/* Tắt sticky trên màn hình nhỏ (tuỳ bạn) */
@media (max-width: 991px){
  .tt-cat-widget{ position: static; }
}

.post-title h1 {
	color: var(--brand-black-950, #030104);
	/* Heading - Desktop/h1 */
	font-family: var(--font-family-family-display, Inter);
	font-size: 40px;
	font-style: normal;
	font-weight: 700;
	line-height: 48px; /* 120% */
	letter-spacing: -0.8px;
	text-transform: uppercase;
}

.elementor-inline-items li span , span a{
	color: var(--black-600, rgba(2, 6, 23, 0.60));
text-align: center;

/* Text - Medium/semibold */
font-family: var(--font-family-family-body, Inter);
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 22px; /* 157.143% */
}

.product-item:hover {
	border: #BA343B 1px solid;
}

#tab-title-description {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.price {
    
color: var(--brand-red-600-base, #BA343B) !important;
/* Heading - Desktop/h2 */
font-family: var(--font-family-family-display, Inter);
font-size: 36px;
font-style: normal;
font-weight: 600;
line-height: 44px; /* 122.222% */
letter-spacing: -0.72px;
text-transform: uppercase;
margin: 0;
}

.wc-tabs {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce-Tabs-panel {
	padding: 16px !important;
}

/* ===================================
   ADD TO CART REDESIGN
   =================================== */

/* Hide Stock Display */
.woocommerce div.product p.stock,
.woocommerce div.product .stock {
    display: none !important;
}

/* Add to Cart Button - RED */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
    background: #B94444 !important;
    background-color: #B94444 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 40px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-transform: none !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:before,
.woocommerce div.product form.cart button.single_add_to_cart_button:before {
    content: '+' !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background: #a03939 !important;
    background-color: #a03939 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(185, 68, 68, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce div.product form.cart .quantity {
        flex-wrap: wrap !important;
    }
    
    .woocommerce div.product form.cart .quantity label {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .woocommerce div.product form.cart .single_add_to_cart_button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ===================================
   TABLE OF CONTENTS (TOC) STYLING - ELEMENTOR & PLUGINS
   =================================== */

/* TOC Container - All types */
.ez-toc-container,
.toc-container,
[id*="ez-toc-container"],
.elementor-widget-table-of-contents,
.elementor-toc {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    margin: 30px 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

/* TOC Header - Red Background with Menu Icon & Arrow */
.ez-toc-title-container,
.toc-title,
.ez-toc-title,
[class*="toc-title"],
.elementor-toc__header {
    background: #BA343B !important;
    background: linear-gradient(135deg, #BA343B 0%, #a03030 100%) !important;
    color: #fff !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Elementor TOC Header Title */
.elementor-toc__header-title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* Menu Icon (3 lines) - Add before title */
.ez-toc-title-container:before,
.toc-title:before,
.elementor-toc__header:before {
    content: "☰" !important;
    font-size: 24px !important;
    margin-right: 12px !important;
    line-height: 1 !important;
    color: #fff !important;
    order: -1 !important;
}

/* Elementor Toggle Button - Single icon that changes state */
.elementor-toc__toggle-button--expand {
    display: none !important;
}

.elementor-toc__toggle-button--collapse {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    margin-left: 8px !important;
}

.elementor-toc__toggle-button--collapse:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.elementor-toc__toggle-button--collapse svg {
    width: 14px !important;
    height: 14px !important;
    fill: #fff !important;
    transition: transform 0.3s ease !important;
}

/* When collapsed, show expand icon */
.elementor-toc--collapsed .elementor-toc__toggle-button--expand {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    margin-left: 8px !important;
}

.elementor-toc--collapsed .elementor-toc__toggle-button--collapse {
    display: none !important;
}

/* Arrow Icon for non-Elementor TOC */
.ez-toc-title-container:after,
.toc-title:after {
    content: "▲" !important;
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

/* Collapsed State - Arrow Down */
.ez-toc-container.collapsed .ez-toc-title-container:after,
.toc-container.collapsed .toc-title:after {
    transform: rotate(180deg) !important;
}

/* TOC Body/List Container */
.ez-toc-list,
.toc-list,
ul.ez-toc-list,
.elementor-toc__body {
    list-style: none !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #eeeeee !important;
}


/* TOC List Items */
.ez-toc-list li,
.toc-list li,
.elementor-toc__list-item {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ez-toc-list li:last-child,
.toc-list li:last-child,
.elementor-toc__list-item:last-child {
    margin-bottom: 0 !important;
}

/* TOC Links */
.ez-toc-list a,
.toc-list a,
.elementor-toc__list-item-text {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    font-family: var(--font-family-family-sans, Inter) !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 24px !important; /* 150% */
}




/* Text and links inside active item - purple color */
.ez-toc-list li.active > a,
.toc-list li.active > a,
.elementor-toc__list-item:has(> .elementor-toc__list-item-text-wrapper.elementor-item-active) .elementor-toc__list-item-text,
.elementor-toc__list-item-text-wrapper.elementor-item-active .elementor-toc__list-item-text {
    background: transparent !important;
    color: var(--600, #421AFF) !important;
    font-family: var(--font-family-family-sans, Inter) !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 24px !important; /* 150% */
    padding: 8px 12px 8px 9px !important; /* 9px left because of 3px border */
}

/* Số thứ tự cũng đổi màu tím khi active */
.elementor-toc__list-item:has(> .elementor-toc__list-item-text-wrapper.elementor-item-active) > .elementor-toc__list-item-text-wrapper:before {
    color: var(--600, #421AFF) !important;
}

/* Elementor TOC List Wrapper */
.elementor-toc__list-wrapper {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: toc-counter !important;
}

/* Elementor TOC List Item with Number */
.elementor-toc__list-item {
    position: relative !important;
    counter-increment: toc-counter !important;
}


/* Top level items only (H2) */
.elementor-toc__body > .elementor-toc__list-wrapper > .elementor-toc__list-item > .elementor-toc__list-item-text-wrapper:before {
    content: counter(toc-counter) ". " !important;
}

/* Remove default Elementor numbering if present */
.elementor-toc__list-item-text.elementor-toc__top-level:before {
    display: none !important;
}

/* Regular plugin TOC numbers */
.ez-toc-list li:before,
.toc-list li:before {
    content: counter(item) ". " !important;
    counter-increment: item !important;
    color: #4318FF !important;
    font-weight: 700 !important;
    margin-right: 8px !important;
}

.ez-toc-list,
.toc-list {
    counter-reset: item !important;
}

/* Nested Lists (Sub-items) - Reset counter for nested */
.ez-toc-list ul,
.toc-list ul,
.elementor-toc__list-wrapper .elementor-toc__list-wrapper {
    list-style: none !important;
    padding: 0 !important;
    counter-reset: toc-counter-sub !important;
}

/* Nested items */
.ez-toc-list ul li,
.toc-list ul li,
.elementor-toc__list-wrapper .elementor-toc__list-wrapper .elementor-toc__list-item {
    margin: 4px 0 !important;
    counter-increment: toc-counter-sub !important;
	padding: 5px !important;
}

/* Nested item numbers */
.elementor-toc__list-wrapper .elementor-toc__list-wrapper .elementor-toc__list-item > .elementor-toc__list-item-text-wrapper:before {
    content: counter(toc-counter) "." counter(toc-counter-sub) " " !important;
    color: #666 ;
    font-weight: 600 !important;
}

.ez-toc-list ul li a,
.toc-list ul li a,
.elementor-toc__list-wrapper .elementor-toc__list-wrapper .elementor-toc__list-item-text {
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 6px 12px !important;
}

/* Hide TOC in Slider */
.category-posts-slider .ez-toc-container,
.category-posts-slider .toc-container,
.category-posts-slider .elementor-widget-table-of-contents,
[class*="category-posts-slider"] .ez-toc-container,
[class*="posts-slider"] .toc-container,
[class*="posts-slider"] .elementor-widget-table-of-contents {
    display: none !important;
}

/* Exclude slider headings from TOC - Prevent auto-linking */
.category-posts-slider h1,
.category-posts-slider h2,
.category-posts-slider h3,
.category-posts-slider h4,
.category-posts-slider h5,
.category-posts-slider h6,
.category-posts-slider-wrapper h1,
.category-posts-slider-wrapper h2,
.category-posts-slider-wrapper h3,
.category-posts-slider-wrapper h4,
.category-posts-slider-wrapper h5,
.category-posts-slider-wrapper h6 {
    scroll-margin-top: 0 !important;
    /* These headings should not be linked from TOC */
}

/* Responsive */
@media (max-width: 768px) {
    .ez-toc-container,
    .toc-container,
    .elementor-widget-table-of-contents {
        margin: 20px 0 !important;
    }
    
    .ez-toc-title-container,
    .toc-title,
    .elementor-toc__header {
        font-size: 16px !important;
        padding: 14px 16px !important;
    }
    
    .elementor-toc__header-title {
        font-size: 16px !important;
    }
    
    .ez-toc-list,
    .toc-list,
    .elementor-toc__body {
        padding: 16px !important;
    }
    
    .ez-toc-list a,
    .toc-list a,
    .elementor-toc__list-item-text {
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
}


.ct-cart-actions {
	flex-direction: column;
}

/* Remove duplicate active state CSS - already defined above */


.elementor-toc__list-item:has(> .elementor-toc__list-item-text-wrapper > .elementor-item-active) {
	background: #fff !important;
}


.elementor-toc__list-item:has(> .elementor-toc__list-item-text-wrapper > .elementor-item-active)  .elementor-toc__list-item-text-wrapper::before{
	  color: #4318FF !important;  
}



.elementor-item-active {
		    color: #4318FF !important;
}

#header{
	border-bottom: 1px solid var(--brand-red-50, #FDF4F3);
	background: var(--white-950, #FFF);

	/* Shadow/small */
	box-shadow: 0 4px 8px -2px rgba(2, 6, 23, 0.16), 0 2px 4px -2px rgba(2, 6, 23, 0.10);
}

.cart {
	flex-direction: column;
	gap: 20px;
}

@media (max-width: 480px) {
    .category-products-slider {
        padding: 0 16px !important;
    }
}

.elementor-wc-products ul.products {
    grid-row-gap: 20px !important;
}
@media (min-width: 1025px) {
    .elementor-widget-wc-archive-products .woocommerce.columns-4 ul.products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;

    }
}