/* ============================================================
   MAKO GLOBAL IMAGE / TILE SYSTEM
   Clean rebuild for:
   - clickable homepage/category tiles
   - product category/archive image overlays
   - product image roundovers
   - single product gallery roundovers
   ============================================================ */

:root {
  --mako-radius: 10px;
  --mako-navy: #060f29;
  --mako-cta-bg: rgba(255, 255, 255, 0.96);
  --mako-cta-text: #060f29;
  --mako-overlay-dark: rgba(6, 15, 41, 0.78);
  --mako-overlay-mid: rgba(6, 15, 41, 0.48);
  --mako-overlay-light: rgba(6, 15, 41, 0.12);
}


/* ============================================================
   1. MAKO CLICKABLE IMAGE TILES
   Replaces floating arrows with clearer CTA pill
   ============================================================ */

.click-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--mako-radius);
  text-decoration: none;
}

.click-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--mako-radius);
  transform: scale(1) translateZ(0);
  transition: transform 0.3s ease;
}

.click-card:hover img,
.click-card:focus img {
  transform: scale(1.03) translateZ(0);
}

/* Hide old floating arrow */
.click-card .click-card-arrow {
  display: none !important;
}

/* Gradient overlay */
.click-card .click-card-overlay {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  border-radius: var(--mako-radius);
  background: linear-gradient(
    to top,
    var(--mako-overlay-dark) 0%,
    rgba(6, 15, 41, 0.28) 32%,
    rgba(6, 15, 41, 0.05) 60%,
    rgba(6, 15, 41, 0) 100%
  );
}

/* CTA pill */
.click-card::after {
  content: "View Range →";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mako-cta-bg);
  color: var(--mako-cta-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.click-card:hover::after,
.click-card:focus::after {
  transform: translateY(-1px);
}

@media (max-width: 999px) {
  .click-card::after {
    left: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 16px;
  }
}


/* ============================================================
   2. GENERAL IMAGE ROUNDOVER
   For standard content/category images
   ============================================================ */

.click-card,
.click-card img,
.wp-block-image img,
.wp-block-woocommerce-product-image img,
.wc-block-components-product-image img,
.wc-block-grid__product-image img {
  border-radius: var(--mako-radius);
}

.wp-block-image,
.wp-block-woocommerce-product-image,
.wc-block-components-product-image,
.wc-block-grid__product-image {
  overflow: hidden;
  border-radius: var(--mako-radius);
}


/* ============================================================
   3. PRODUCT TITLES
   Wrap + scale on desktop
   ============================================================ */

@media (min-width: 769px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .wc-block-grid__product-title,
  .wc-block-components-product-title,
  .wp-block-post-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: clamp(1.1rem, 1.6vw, 1.8rem) !important;
    line-height: 1.2;
  }
}


/* ============================================================
   4. PRODUCT BUTTONS
   Scale on desktop
   ============================================================ */

@media (min-width: 769px) {
  .mako-retail-products .wp-block-buttons .wp-block-button__link,
  .mako-retail-products .wp-block-button__link.wp-element-button {
    font-size: clamp(0.75rem, 1.2vw, 1.05rem) !important;
    line-height: 1.1;
    padding:
      clamp(8px, 0.9vw, 14px)
      clamp(12px, 1.4vw, 22px) !important;
    white-space: nowrap;
  }
}
/* ============================================================
   5. PRODUCT CATEGORY / ARCHIVE IMAGE CTA OVERLAY
   Works on:
   - true WooCommerce archive/category templates
   - custom MAKO page sections with .mako-retail-products
   ============================================================ */

:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child {
  position: relative;
  display: block !important;
  width: 100% !important;
  overflow: hidden;
  border-radius: var(--mako-radius);
  text-decoration: none;
  isolation: isolate;
  margin: 0 !important;
}

/* Make sure the link fills the wrapper cleanly */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image > a,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image > a,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image > a,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

/* Product images */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--mako-radius);
  transform: scale(1) translateZ(0);
  transition: transform 0.35s ease;
}

/* Gradient overlay */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--mako-overlay-dark) 0%,
    var(--mako-overlay-mid) 38%,
    var(--mako-overlay-light) 68%,
    rgba(6, 15, 41, 0) 100%
  );
  pointer-events: none;
}

/* CTA pill */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child::after {
  content: "View Product →";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mako-cta-bg);
  color: var(--mako-cta-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.35s ease;
}

/* Hover */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child:hover img {
  transform: scale(1.03) translateZ(0);
}

:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child:hover::after {
  transform: translateY(-1px);
}

@media (max-width: 999px) {
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wc-block-components-product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wc-block-grid__product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wp-block-woocommerce-product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .woocommerce ul.products li.product > a:first-child::after {
    left: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 16px;
  }
}
/* Gradient overlay */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image::before,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--mako-overlay-dark) 0%,
    var(--mako-overlay-mid) 38%,
    var(--mako-overlay-light) 68%,
    rgba(6, 15, 41, 0) 100%
  );
  pointer-events: none;
}

/* CTA pill */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child::after {
  content: "View Product →";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mako-cta-bg);
  color: var(--mako-cta-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.35s ease;
}

/* Hover */
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image:hover img,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child:hover img {
  transform: scale(1.03) translateZ(0);
}

:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-components-product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wc-block-grid__product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.wp-block-woocommerce-product-image:hover::after,
:is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
.woocommerce ul.products li.product > a:first-child:hover::after {
  transform: translateY(-1px);
}

@media (max-width: 999px) {
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wc-block-components-product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wc-block-grid__product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .wp-block-woocommerce-product-image::after,
  :is(.mako-retail-products, .post-type-archive-product, .tax-product_cat)
  .woocommerce ul.products li.product > a:first-child::after {
    left: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 16px;
  }
}


/* ============================================================
   6. SINGLE PRODUCT PAGE IMAGE ROUNDOVER
   Blocksy / Flexy gallery
   ============================================================ */

.single-product .woocommerce-product-gallery,
.single-product .ct-product-gallery-container,
.single-product .flexy-container,
.single-product .flexy,
.single-product .flexy-view[data-flexy-view="boxed"] {
  border-radius: var(--mako-radius) !important;
}

.single-product .flexy-view[data-flexy-view="boxed"] {
  overflow: hidden !important;
}

.single-product .flexy-item,
.single-product .flexy-item .ct-media-container {
  border-radius: var(--mako-radius) !important;
  overflow: hidden !important;
}

.single-product .flexy-item .ct-media-container img,
.single-product .flexy-item .ct-media-container img.zoomImg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--mako-radius) !important;
}

.single-product .flexy-pills[data-type="thumbs"] ol {
  margin-top: 12px;
  padding: 0;
}

.single-product .flexy-pills[data-type="thumbs"] li,
.single-product .flexy-pills[data-type="thumbs"] .ct-media-container {
  border-radius: var(--mako-radius) !important;
  overflow: hidden !important;
}

.single-product .flexy-pills[data-type="thumbs"] img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--mako-radius) !important;
}

@media (max-width: 999px) {
  .single-product .flexy-pills[data-type="thumbs"] ol {
    gap: 8px;
    margin-top: 8px;
  }

  .single-product .flexy-pills[data-type="thumbs"] li {
    width: 72px !important;
  }
}
/* ============================================================
   FULL-WIDTH SPLIT SECTIONS
   Keep text/image spacing, but make outer-edge image flush
   ============================================================ */

/* Left-side image column: remove only the outer left padding */
.wp-block-columns.alignfull > .wp-block-column:first-child:has(.wp-block-image),
.wp-block-columns.alignfull > .wp-block-column:first-child:has(.click-card) {
  padding-left: 0 !important;
}

/* Right-side image column: remove only the outer right padding */
.wp-block-columns.alignfull > .wp-block-column:last-child:has(.wp-block-image),
.wp-block-columns.alignfull > .wp-block-column:last-child:has(.click-card) {
  padding-right: 0 !important;
}

/* Keep the image itself filling its column cleanly */
.wp-block-columns.alignfull > .wp-block-column:first-child:has(.wp-block-image) .wp-block-image,
.wp-block-columns.alignfull > .wp-block-column:first-child:has(.click-card) .click-card,
.wp-block-columns.alignfull > .wp-block-column:last-child:has(.wp-block-image) .wp-block-image,
.wp-block-columns.alignfull > .wp-block-column:last-child:has(.click-card) .click-card {
  width: 100%;
  margin: 0 !important;
}

/* Make sure standard images fill their wrapper */
.wp-block-columns.alignfull > .wp-block-column:has(.wp-block-image) .wp-block-image img,
.wp-block-columns.alignfull > .wp-block-column:has(.click-card) .click-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   MAKO MANUAL PRODUCT PREVIEW OVERLAY
   For rebuilt product previews using normal image blocks
   ============================================================ */

/* Make the linked image wrapper the overlay target */
.mako-retail-products .wp-block-image > a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--mako-radius);
  text-decoration: none;
  isolation: isolate;
}

/* Image inside linked image block */
.mako-retail-products .wp-block-image > a img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--mako-radius);
  transform: scale(1) translateZ(0);
  transition: transform 0.35s ease;
}

.mako-retail-products .wp-block-image > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--mako-overlay-dark) 0%,
    var(--mako-overlay-mid) 38%,
    var(--mako-overlay-light) 68%,
    rgba(6, 15, 41, 0) 100%
  );
  pointer-events: none;
}

/* View Product pill */
.mako-retail-products .wp-block-image > a::after {
  content: "View Product →";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mako-cta-bg);
  color: var(--mako-cta-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.35s ease;
}

/* Hover */
.mako-retail-products .wp-block-image > a:hover img,
.mako-retail-products .wp-block-image > a:focus img {
  transform: scale(1.03) translateZ(0);
}

.mako-retail-products .wp-block-image > a:hover::after,
.mako-retail-products .wp-block-image > a:focus::after {
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 999px) {
  .mako-retail-products .wp-block-image > a::after {
    left: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 16px;
  }
}
/* Hide all product meta on single product pages */
.single-product .product_meta {
  display: none !important;
}
/* Above-the-fold product benefit bullets */
.single-product .mako-product-benefits {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.single-product .mako-product-benefits li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 26px;
  line-height: 1.5;
  font-weight: 500;
}

.single-product .mako-product-benefits li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: #060f29;
  font-size: 1.1em;
  line-height: 1.4;
}
.single-product .mako-product-intro {
  margin: 18px 0 18px;
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
  color: #3f536f;
}
/* Paint colour helper area on single product pages */
.single-product .mako-paint-help {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(6, 15, 41, 0.06);
  color: #3f536f;
  font-size: 14px;
  line-height: 1.5;
}

.single-product form.cart label {
  font-weight: 600;
}
/* HTML Sitemap */
.html-sitemap {
  max-width: 900px;
  margin: 0 auto;
}

.html-sitemap h1 {
  margin-bottom: 24px;
}

.html-sitemap ul {
  list-style: disc !important;
  margin: 0 0 1em 1.5em !important;
  padding-left: 1.5em !important;
}

.html-sitemap ul ul {
  list-style: circle !important;
  margin-top: 0.5em !important;
}

.html-sitemap ul ul ul {
  list-style: square !important;
}

.html-sitemap li {
  margin-bottom: 0.45em;
  line-height: 1.6;
}

.html-sitemap a {
  text-decoration: underline;
}

.html-sitemap a:hover,
.html-sitemap a:focus {
  text-decoration: none;
}