/* =========================================================
   Centonia product pages: one consistent look
   ========================================================= */
:root {
	--cx-blue: #2cc3e8;
	--cx-blue-dark: #1aa9cc;
	--cx-ink: #232323;
	--cx-text: #4a5563;
	--cx-line: #e3e6ea;
	--cx-bg: #f4f5f7;
}

/* ---------- All product titles black ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce-loop-category__title,
.woocommerce div.product .product_title,
.centonia-product-top .product_title,
.woocommerce-tabs .panel h2,
.woocommerce-tabs .panel h3 { color: var(--cx-ink) !important; }

/* =========================================================
   LISTING PAGE
   ========================================================= */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 0 40px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }   /* clearfix grid todta hai */
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.08);
	padding: 26px 22px 28px; text-align: center;
	display: flex; flex-direction: column; align-items: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; width: 100%; }
.woocommerce ul.products li.product a img { width: 100%; height: 230px; object-fit: contain; margin: 0 0 14px; display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 6px 0 10px; padding: 0; }
.woocommerce ul.products li.product .price { color: var(--cx-text); font-size: 16px; margin-bottom: 14px; }
.woocommerce ul.products li.product .button {
	margin-top: auto; background: var(--cx-blue); color: #fff !important; border: 0; border-radius: 4px;
	padding: 12px 30px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: background .25s ease;
}
.woocommerce ul.products li.product .button:hover { background: var(--cx-blue-dark); }

/* colour dots (sirf jin products me colour ho) */
.cx-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.cx-dot {
	display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
	border: 2px solid #d9dde1; box-shadow: inset 0 0 0 2px #fff;
	transition: transform .2s ease, border-color .2s ease;
}
.cx-dot:hover { transform: scale(1.12); }
.cx-dot.is-active { border-color: var(--cx-ink); }

/* pagination */
.woocommerce nav.woocommerce-pagination { text-align: center; margin: 10px 0 40px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: inline-flex; gap: 8px; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; float: none; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px; height: 44px; line-height: 40px; padding: 0 12px;
	border: 2px solid var(--cx-blue); border-radius: 4px; background: #fff; color: var(--cx-blue); font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--cx-blue); color: #fff; }

@media (max-width: 991px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.centonia-product-top .product_title { text-align: center; font-size: 32px; }

/* tabs = grey sub menu bar */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	background: #eeeeee; margin: 0 0 30px; padding: 0;
	display: flex; justify-content: center; flex-wrap: wrap; overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 20px 34px; color: var(--cx-ink); font-size: 15px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .5px; border-bottom: 3px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--cx-blue); border-bottom-color: var(--cx-blue); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 1000px; margin: 0 auto 50px; color: var(--cx-text); line-height: 1.8; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.cx-empty { text-align: center; color: var(--cx-text); }

/* specifications table */
.woocommerce table.shop_attributes { border: 0; width: 100%; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--cx-line); background: none; font-style: normal; }
.woocommerce table.shop_attributes th { width: 30%; color: var(--cx-ink); font-weight: 600; }

/* Accessories photo selector (dots) */
.cx-acc { --cx-per: 3; margin: 0 0 30px; }
.cx-acc__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cx-acc__track::-webkit-scrollbar { display: none; }
.cx-acc__item { flex: 0 0 calc(100% / var(--cx-per)); box-sizing: border-box; padding: 0 14px; margin: 0; text-align: center; scroll-snap-align: start; }
.cx-acc__item img { width: 100%; height: 200px; object-fit: contain; display: block; margin: 0 auto 10px; }
.cx-acc__item figcaption { font-size: 14px; color: var(--cx-text); }
.cx-acc__dots { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.cx-acc__dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #c8ccd0; cursor: pointer; transition: background .2s ease; }
.cx-acc__dot.is-active { background: var(--cx-ink); }
@media (max-width: 768px) { .cx-acc { --cx-per: 2; } }
@media (max-width: 480px) { .cx-acc { --cx-per: 1; } }

/* Manuals buttons */
.cx-manuals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cx-btn {
	display: inline-block; background: var(--cx-blue); color: #fff !important; border-radius: 4px;
	padding: 14px 34px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: background .25s ease;
}
.cx-btn:hover { background: var(--cx-blue-dark); }

@media (max-width: 768px) {
	.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 16px; font-size: 13px; }
}

/* =========================================================
   /products/ PAGE: cards grid + pagination (12 per page)
   ========================================================= */
.cx-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 0 30px; }
.cx-pcard {
	background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.08);
	padding: 26px 18px 24px; text-align: center; display: flex; flex-direction: column; align-items: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.cx-pcard:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.cx-pcard__img { display: block; width: 100%; height: 210px; margin-bottom: 12px; }
.cx-pcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cx-pcard__title { margin: 8px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; font-style: normal; text-transform: uppercase; letter-spacing: .5px; }
.cx-pcard__title a { color: var(--cx-ink) !important; font-style: normal; }
.cx-pcard__title a:hover { color: var(--cx-blue) !important; }

.cx-pagination { text-align: center; margin: 10px 0 40px; }
.cx-pagination .page-numbers {
	display: inline-block; min-width: 44px; height: 44px; line-height: 40px; margin: 0 4px; padding: 0 12px;
	border: 2px solid var(--cx-blue); border-radius: 4px; background: #fff; color: var(--cx-blue); font-weight: 600; transition: all .2s ease;
}
.cx-pagination .page-numbers.current,
.cx-pagination a.page-numbers:hover { background: var(--cx-blue); color: #fff; }

@media (max-width: 991px) { .cx-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cx-products { grid-template-columns: 1fr; } }

/* dots: button reset */
button.cx-dot { padding: 0; appearance: none; -webkit-appearance: none; }

/* =========================================================
   Single product: Specifications tab
   ========================================================= */
.woocommerce-product-attributes-item--attribute_pa_colors { display: none; }
.cx-specs h1, .cx-specs h2, .cx-specs h3, .cx-specs h4 { text-align: center; color: var(--cx-ink) !important; margin: 0 0 24px; font-weight: 700; }
.cx-specs .vc_row, .cx-specs .vc_column_container > .vc_column-inner { margin: 0; padding: 0; }
.cx-specs table { width: 100%; border-collapse: collapse; margin: 0 auto 30px; border: 0; }
.cx-specs table td, .cx-specs table th {
	padding: 14px 18px; border: 0; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: top;
	color: var(--cx-text); font-size: 15px; line-height: 1.6; background: none;
}
.cx-specs table tr:nth-child(odd) td, .cx-specs table tr:nth-child(odd) th { background: var(--cx-bg); }
.cx-specs table td:first-child, .cx-specs table th:first-child { width: 35%; font-weight: 600; color: var(--cx-ink); }
@media (max-width: 600px) { .cx-specs table td:first-child, .cx-specs table th:first-child { width: 45%; } }

/* =========================================================
   Fallback: agar purana WPBakery grid dikh raha ho, titles tab bhi black
   ========================================================= */
.vc_grid-item h2, .vc_grid-item h3, .vc_grid-item h4,
.vc_grid-item h2 a, .vc_grid-item h3 a, .vc_grid-item h4 a,
.vc_grid-item .vc_gitem-post-data a,
.vc_grid-container .vc_gitem-zone a { color: var(--cx-ink) !important; font-style: normal !important; }
.vc_grid-item h2 a:hover, .vc_grid-item h3 a:hover { color: var(--cx-blue) !important; }

/* ---------- Tabs: blue line on top AND bottom of the active tab ---------- */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:hover { background: #fff !important; border: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--cx-blue);
	border-top-color: var(--cx-blue);
	border-bottom-color: var(--cx-blue);
}
.cx-body img { max-width: 100%; height: auto; }