.taxonomy-category.wp-block-post-terms a, 
.taxonomy-post_tag.wp-block-post-terms a, .wp-block-tag-cloud a {
    border: none;
    color: var(--wp--preset--color--button-color-hover);
    background: var(--wp--preset--color--secondary);
    padding: 0 10px;
}

.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color:  var(--wp--preset--color--primary);
    color: var(--wp--preset--color--button-color-hover)!important;
    background-color:  var(--wp--preset--color--primary);
}
	
.wp-block-navigation ul li.current-menu-item > a {
    color: var(--wp--preset--color--primary);
}


input[type="button"],
input[type="reset"],
input[type="submit"]{
	border: none;
	
}


.is-style-underline a {
	position: relative;
	padding: 0 0 2px;
	align-items: center;
	margin: 0;
	background-color: transparent;
	color: var(--wp--preset--color--foreground);
	overflow: visible;
  }

  .is-style-underline a::before {
	position: absolute;
	left: 0;
	top: 100%;
	width: 50%;
	height: 2px;
	content: '';
	background-color: var(--wp--preset--color--foreground);
	transition: all 0.4s;
  }

  .is-style-underline.white-underline a::before {
	background-color: var(--wp--preset--color--white);
  }

  .is-style-underline a:hover {
	background: none !important;
  }

  .is-style-underline a:hover::before {
	width: 100%;
  }


  p.wp-block-post-excerpt__more-text {
    margin-top: 0;
}

.editor-styles-wrapper .wp-site-blocks > * + *, 
.editor-styles-wrapper .wp-site-blocks > * + * + *, 
.wp-site-blocks > * + *, .wp-site-blocks > * + * + *, 
.editor-styles-wrapper .wp-site-blocks > * + * {
  margin: 0!important;
  margin-block-start: 0;
}
.editor-styles-wrapper .wp-site-blocks > * + * {
  margin-block-start: 0!important;
}

/* ===== Dynamic WooCommerce product grids (shop pages) ===== */
.cp-shop-wrap {
  max-width: 1022px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}
.cp-shop-title {
  font-family: var(--cp-font-head, "DM Sans", Inter, system-ui, sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: #152A4D;
  text-align: center;
  margin: 0 0 22px;
}
.cp-shop-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  clear: both;
}
.cp-shop-grid ul.products::before,
.cp-shop-grid ul.products::after {
  content: none !important;
  display: none !important;
}
.cp-shop-grid ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  text-align: center;
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: 0 8px 22px rgba(15, 42, 77, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cp-shop-grid ul.products li.product:hover {
  box-shadow: 0 14px 32px rgba(15, 42, 77, .12);
  transform: translateY(-2px);
}
.cp-shop-grid ul.products li.product a img {
  width: auto;
  max-height: 210px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 10px;
}
.cp-shop-grid ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--cp-font-head, "DM Sans", Inter, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #152A4D;
  margin: 0 0 8px;
  min-height: 34px;
}
.cp-shop-grid ul.products li.product .price {
  color: #0A6E7D !important;
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 12px;
}
.cp-shop-grid ul.products li.product .price del {
  color: #9aa7b4;
  font-weight: 500;
}
.cp-shop-grid ul.products li.product .button,
.cp-shop-grid ul.products li.product .added_to_cart {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0D5363;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: none;
}
.cp-shop-grid ul.products li.product .button:hover {
  background: #0A6E7D;
  color: #fff !important;
}
@media (max-width: 1000px) {
  .cp-shop-grid ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .cp-shop-grid ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cp-shop-grid ul.products li.product { padding: 12px 10px; }
  .cp-shop-grid ul.products li.product a img { max-height: 150px; }
}
@media (max-width: 420px) {
  .cp-shop-grid ul.products { grid-template-columns: repeat(1, 1fr); }
}

/* ===== Blog, single posts and sitemap: responsive content gutters ===== */
/* Keep these rules scoped; landing pages still need full-width sections.
   The blog selectors also override styles embedded in its page content. */
body.page #cp-blog .wrap,
body.single-post .wp-site-blocks > main > .wp-block-post-content,
body.cp-sitemap-page .wp-block-post-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1022px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 48px);
}

body.cp-sitemap-page .wp-block-post-content,
body.single-post .wp-site-blocks > main > .wp-block-post-content,
body.page #cp-blog .section {
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Imported articles can contain another post-content block.
   Apply the reading width and padding only to the outer container. */
body.single-post .wp-site-blocks > main > .wp-block-post-content {
  max-width: 900px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.single-post main > .wp-block-post-content > .alignfull,
body.single-post main > .wp-block-post-content > .alignwide {
  max-width: 100%;
  margin-inline: 0;
}

body.single-post main > .wp-block-post-content :is(h1, h2, h3, h4) {
  line-height: 1.35;
}

body.single-post main > .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

body.cp-sitemap-page .wp-block-post-content {
  color: #152A4D;
  overflow-wrap: anywhere;
}

body.cp-sitemap-page .wp-block-post-content > :first-child {
  margin-top: 0;
}

body.cp-sitemap-page .wp-block-post-content > :last-child {
  margin-bottom: 0;
}

body.cp-sitemap-page .wp-block-post-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E7EEF5;
}

body.cp-sitemap-page .wp-block-post-content p {
  line-height: 1.9;
}

@media (max-width: 640px) {
  body.page #cp-blog .hero {
    border-radius: 18px;
  }
}
