/* Footer spacing – Blocksy --theme-border-* vars are unset on this site */
.ct-footer[data-id="type-1"],
.ct-footer {
  --theme-border-top: 1px solid rgba(17, 17, 17, 0.08);
  --theme-border-bottom: none;
  --footer-container-padding: 0 clamp(1rem, 3vw, 1.5rem);
  margin-top: 2.5rem;
}
.ct-footer [data-row="middle"] {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: none;
}

/* Click-Go Prime footer: 4 columns on desktop */
.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container,
.ct-footer [data-row="middle"] > .ct-container,
.ct-footer [data-row="bottom"] > .ct-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container,
.ct-footer [data-row="middle"] > .ct-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 2.5rem !important;
  row-gap: 2rem !important;
  align-items: start;
  width: 100%;
}
.ct-footer [data-row="middle"] > .ct-container > [data-column] {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
}
.ct-footer .ct-footer-widget-area {
  padding: 0 4px;
}
.ct-footer .ct-footer-widget-area h5.wp-block-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #111;
}
.ct-footer .ct-footer-widget-area p {
  margin: 0 0 0.65rem;
  line-height: 1.7;
  color: #444;
  font-size: 0.92rem;
}
.ct-footer .ct-footer-widget-area .wp-block-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.ct-footer .ct-footer-widget-area .wp-block-list li {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  font-size: 0.92rem;
}
.ct-footer .ct-footer-widget-area .wp-block-list a {
  color: #444;
  text-decoration: none;
}
.ct-footer .ct-footer-widget-area .wp-block-list a:hover {
  color: #111;
  text-decoration: underline;
}
.ct-footer [data-column="widget-area-5"] .cgp-pay-netopia {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0 1rem !important;
}
.ct-footer [data-column="widget-area-5"] .cgp-pay-netopia img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}
.ct-footer [data-column="widget-area-5"] .cgp-footer-copy {
  margin-top: 0.5rem !important;
  color: #777 !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
}
.ct-footer [data-row="bottom"] {
  display: none;
}
@media (max-width: 999px) and (min-width: 768px) {
  .ct-footer [data-row="middle"] > .ct-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .ct-footer [data-row="middle"] > .ct-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .ct-footer .ct-footer-widget-area {
    text-align: center;
    padding: 0;
  }
  .ct-footer .ct-footer-widget-area .wp-block-list {
    display: inline-block;
    text-align: left;
  }
  .ct-footer [data-column="widget-area-5"] .cgp-pay-netopia {
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Header: compact height + readable menu on orange */
#main-container {
  overflow: visible !important;
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10020;
  background: #fff;
}
body {
  padding-top: 84px;
}
.admin-bar #header {
  top: 32px;
}
.admin-bar body {
  padding-top: 116px;
}
@media screen and (max-width: 782px) {
  .admin-bar #header {
    top: 46px;
  }
  .admin-bar body {
    padding-top: 130px;
  }
}
#header [data-row="middle"] {
  --header-height: 84px;
  --height: 84px !important;
  min-height: 84px !important;
}
#header [data-row="middle"] .site-logo-container {
  --logo-max-height: 64px;
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  line-height: 0;
}
#header [data-row="middle"] .site-logo-container img,
#header [data-row="middle"] .site-logo-container svg {
  max-height: 64px !important;
  max-width: 64px !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 50% !important;
}
#header [data-row="middle"] .menu > li > .ct-menu-link,
#header [data-row="middle"] .menu > li > a {
  color: #fff !important;
}
#header [data-row="middle"] .menu > li:hover > .ct-menu-link,
#header [data-row="middle"] .menu > li:hover > a,
#header [data-row="middle"] .menu > li.current-menu-item > .ct-menu-link,
#header [data-row="middle"] .menu > li.current-menu-item > a {
  color: #111 !important;
}
#header [data-row="middle"] .ct-header-search,
#header [data-row="middle"] .ct-header-trigger {
  color: #1c1916 !important;
}
#header [data-row="middle"] .ct-header-search svg,
#header [data-row="middle"] .ct-header-trigger svg,
#header [data-row="middle"] .ct-header-trigger svg rect {
  fill: currentColor;
  color: inherit;
}
header .menu > li.menu-item-has-children > .ct-menu-link {
  padding-right: 0.35rem;
}
header .sub-menu {
  min-width: 220px;
}

/* Homepage: remove white gap under header */
.home #main,
.home .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.home .entry-content > .alignfull:first-child,
.home .entry-content > .wp-block-group.alignfull:first-child {
  margin-top: 0 !important;
}

/* Category archive layout */
.tax-product_cat #main,
.post-type-archive-product #main {
  padding-bottom: 2rem;
}
.tax-product_cat .hero-section,
.tax-product_cat [class*="hero"] {
  margin-bottom: 0 !important;
}
.tax-product_cat .ct-container,
.tax-product_cat .ct-container-full {
  max-width: 1200px;
}
.tax-product_cat .products {
  margin-bottom: 1.5rem;
}
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering {
  margin-bottom: 1.25rem;
}
.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.7em;
}
.tax-product_cat .cgp-cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.tax-product_cat .cgp-cat-card + h4 a {
  color: inherit;
  text-decoration: none;
}
.tax-product_cat .cgp-cat-card + h4 a:hover {
  text-decoration: underline;
}

/* Cart page layout */
.woocommerce-cart .hero-section,
.woocommerce-cart .entry-header {
  margin-bottom: 0.5rem !important;
}
.woocommerce-cart .entry-header .page-title,
.woocommerce-cart .entry-header .entry-title {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 20px;
  text-align: left;
}
.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
.woocommerce-cart .entry-content > .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.wc-block-cart-items__header,
.wc-block-cart-items__row,
.wc-block-cart__main {
  width: 100%;
}
.wc-block-cart-item__product {
  text-align: left;
}
.wc-block-components-product-name,
.wc-block-components-product-metadata {
  text-align: left !important;
}
.wc-block-components-product-name {
  font-size: 0.98rem;
  line-height: 1.4;
  max-width: 100%;
}
.wc-block-cart-item__wrap .wc-block-components-product-name {
  margin-bottom: 0.35rem;
}
.wc-block-cart-item__quantity {
  align-items: center;
}

/* Empty cart + cross-sells product grid */
.wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wc-block-grid__product {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.wc-block-grid__product-image {
  margin-bottom: 0.75rem;
}
.wc-block-grid__product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wc-block-grid__product-title {
  text-align: left !important;
  padding: 0 0.85rem !important;
  margin: 0 0 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
  min-height: 2.7em;
}
.wc-block-grid__product-price {
  text-align: left !important;
  padding: 0 0.85rem !important;
  margin-top: auto !important;
  margin-bottom: 0.65rem !important;
}
.wc-block-grid__product .wp-block-button,
.wc-block-grid__product .wc-block-grid__product-add-to-cart {
  margin-top: auto;
  padding: 0 0.85rem 0.85rem !important;
  width: 100%;
}
.wc-block-grid__product .wp-block-button__link {
  width: 100%;
  text-align: center;
}
.wc-block-cart-cross-sells-block .wc-block-grid__products,
.wp-block-woocommerce-cart-cross-sells-products-block .wc-block-grid__products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 999px) {
  .wc-block-grid__products,
  .wc-block-cart-cross-sells-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .wc-block-grid__products {
    grid-template-columns: 1fr !important;
  }
}

/* Single product page layout */
.single-product #main,
.single-product .site-main {
  padding-top: 0 !important;
}
.single-product .hero-section,
.single-product .hero-section .entry-header {
  margin-bottom: 0.5rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  min-height: 0 !important;
}
.single-product .hero-section[data-type="type-1"],
.single-product .hero-section[data-type="type-2"] {
  --hero-min-height: 0px;
}
.single-product .ct-breadcrumbs {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  text-transform: none;
}
.single-product .ct-breadcrumbs .first-item a span[itemprop="name"] {
  text-transform: none;
}
.single-product .summary .product_title,
.single-product .product_title.entry-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  line-height: 1.25 !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
}
.single-product .woocommerce-product-details__short-description {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.single-product .ct-container,
.single-product .ct-container-full {
  max-width: 1200px;
}

