/* ============================================================
   SPARMADILLO CATEGORY CARDS (large clickable tiles)
   ============================================================ */

.click-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.click-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.click-card:hover img {
  transform: scale(1.03);
  opacity: 0.5;
}

.click-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 14%,
    rgba(0, 0, 0, 0) 36%
  );
}

.click-card-arrow {
  font-size: 7rem;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  animation: arrowSlide 2.2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.wp-block-columns .wp-block-column .click-card,
.wp-block-column .click-card {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.wp-block-columns {
  row-gap: 0 !important;
}

/* ============================================================
   SHARED SLIDE ANIMATION
   ============================================================ */

@keyframes arrowSlide {
  0% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(20px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
}

/* ============================================================
   RETAIL PRODUCT IMAGES ONLY
   Clearer click target instead of floating arrow
   ============================================================ */

/* Image wrappers */
.sparmadillo-retail-products .wc-block-components-product-image,
.sparmadillo-retail-products .wc-block-grid__product-image,
.sparmadillo-retail-products .wp-block-woocommerce-product-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Anchor wrapper */
.sparmadillo-retail-products .wc-block-components-product-image a,
.sparmadillo-retail-products .wc-block-grid__product-image a,
.sparmadillo-retail-products .wp-block-woocommerce-product-image a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}

/* Product image */
.sparmadillo-retail-products .wc-block-components-product-image img,
.sparmadillo-retail-products .wc-block-grid__product-image img,
.sparmadillo-retail-products .wp-block-woocommerce-product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0;
  display: block;
  transition: transform 0.3s ease;
}

/* Gradient overlay */
.sparmadillo-retail-products .wc-block-components-product-image a::before,
.sparmadillo-retail-products .wc-block-grid__product-image a::before,
.sparmadillo-retail-products .wp-block-woocommerce-product-image a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 15, 41, 0.75) 0%,
    rgba(6, 15, 41, 0.35) 35%,
    rgba(6, 15, 41, 0.08) 65%,
    rgba(6, 15, 41, 0) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* CTA pill */
.sparmadillo-retail-products .wc-block-components-product-image a::after,
.sparmadillo-retail-products .wc-block-grid__product-image a::after,
.sparmadillo-retail-products .wp-block-woocommerce-product-image a::after {
  content: "View Product →";
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #060f29;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Hover state */
.sparmadillo-retail-products .wc-block-components-product-image a:hover img,
.sparmadillo-retail-products .wc-block-grid__product-image a:hover img,
.sparmadillo-retail-products .wp-block-woocommerce-product-image a:hover img {
  transform: scale(1.03);
}

.sparmadillo-retail-products .wc-block-components-product-image a:hover::before,
.sparmadillo-retail-products .wc-block-grid__product-image a:hover::before,
.sparmadillo-retail-products .wp-block-woocommerce-product-image a:hover::before {
  opacity: 0.9;
}

/* Mobile sizing */
@media (max-width: 999px) {
  .sparmadillo-retail-products .wc-block-components-product-image a::after,
  .sparmadillo-retail-products .wc-block-grid__product-image a::after,
  .sparmadillo-retail-products .wp-block-woocommerce-product-image a::after {
    left: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 14px;
  }
}
/* ============================================================
   MOBILE COLUMN ORDER UTILITY
   ============================================================ */

@media (max-width: 781px) {
  .reverse-mobile {
    flex-direction: column-reverse;
  }
}

/* ============================================================
   PRODUCT TITLES / BUTTONS
   ============================================================ */

@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;
    font-size: clamp(1.1rem, 1.6vw, 1.8rem) !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (min-width: 769px) {
  .wc-block-grid__product .wp-block-button__link,
  .wc-block-components-product-button__button,
  .sparmadillo-retail-products .wp-block-buttons .wp-block-button__link,
  .mako-retail-products .wp-block-buttons .wp-block-button__link,
  .wp-block-buttons .wp-block-button__link {
    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;
  }
}

/* ============================================================
   MOBILE PRODUCT TITLE
   ============================================================ */

.sp-mobile-product-title {
  display: none;
}

@media (max-width: 999px) {
  .sp-mobile-product-title {
    display: block;
    margin: 0 0 20px;
  }

  .sp-mobile-product-title h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.2;
  }

  .sp-mobile-product-title .price {
    margin: 0;
    font-weight: 600;
  }

  .single-product .entry-summary > .product_title,
  .single-product .entry-summary > .price {
    display: none;
  }
}

/* ============================================================
   UNDER-IMAGE COPY
   ============================================================ */

.sp-under-image-copy {
  margin-top: 20px;
  padding: 15px;
}

/* ============================================================
   BRANCHING PRODUCT PURCHASE OPTIONS
   ============================================================ */

.sp-is-hidden {
  display: none !important;
}

.sp-order-path-box {
  margin: 0 0 28px;
  padding: 24px;
  background: #f7f7f7;
  border-radius: 8px;
}

.sp-order-path-box h3 {
  margin: 0 0 10px;
}

.sp-order-path-box p {
  margin: 0 0 14px;
}

.sp-order-path-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-path-btn {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #0b1d49;
  border-radius: 8px;
  background: #fff;
  color: #0b1d49;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.sp-path-btn.is-active {
  background: #0b1d49;
  color: #fff;
}

.sp-order-path-note {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.sp-order-path-note li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.sp-custom-fields-intro,
.sp-custom-upload-note {
  font-size: 14px;
  line-height: 1.5;
}

.sp-branch-cta-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-enquiry-wrap {
  margin-top: 28px;
  padding: 24px;
  background: #f7f7f7;
  border-radius: 8px;
}

.sp-enquiry-wrap h3 {
  margin: 0 0 10px;
}

.sp-enquiry-wrap p {
  margin: 0 0 14px;
}

.sp-cf7-custom-only {
  margin-top: 16px;
}

.sp-cf7-custom-intro {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.sp-enquiry-wrap input,
.sp-enquiry-wrap select,
.sp-enquiry-wrap textarea {
  width: 100%;
}

/* ============================================================
   PERMANENT PRODUCT PAGE MEASURING GUIDE
   ============================================================ */

.sp-under-image-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-measure-guide-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 16px;
  border: 2px solid #0b1d49;
  border-radius: 10px;
  background: #0b1d49;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  touch-action: manipulation;
}

.sp-measure-guide-btn:hover,
.sp-measure-guide-btn:focus {
  background: #16326b;
  color: #fff;
  text-decoration: none;
}

.sp-measure-guide-btn[aria-expanded="true"] {
  background: #fff;
  color: #0b1d49;
}

.sp-measure-guide-btn[aria-expanded="true"]:hover,
.sp-measure-guide-btn[aria-expanded="true"]:focus {
  background: #f5f7fb;
  color: #0b1d49;
}

.sp-measure-guide-panel {
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 10px;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.sp-measure-guide-panel[hidden] {
  display: none !important;
}

.sp-measure-guide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.sp-under-image-secondary-link {
  font-weight: 600;
  text-decoration: underline;
}

.sp-under-image-secondary-link:hover,
.sp-under-image-secondary-link:focus {
  text-decoration: underline;
}

/* ============================================================
   MOBILE-ONLY ORDER PATH BOX
   ============================================================ */

.sp-order-path-box--mobile {
  display: none;
}

@media (max-width: 999px) {
  .sp-under-image-actions {
    align-items: center !important;
    text-align: center !important;
  }

  .sp-under-image-actions .sp-measure-guide-btn {
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 12px 16px !important;
    background: #0b1d49 !important;
    color: #fff !important;
    border: 2px solid #0b1d49 !important;
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .sp-under-image-actions .sp-measure-guide-btn[aria-expanded="true"] {
    background: #fff !important;
    color: #0b1d49 !important;
  }

  .sp-under-image-actions .sp-measure-guide-panel {
    width: 100%;
    margin-top: 10px;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
    overflow: hidden !important;
  }

  .sp-under-image-actions .sp-measure-guide-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
  }

  .sp-order-path-box--mobile {
    display: block;
    margin-top: 20px;
  }

  .entry-summary .sp-order-path-box {
    display: none !important;
  }
}

@media (min-width: 1000px) {
  .sp-order-path-box--mobile {
    display: none !important;
  }
}
.sp-home-decision-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

.sp-home-decision-buttons .wp-block-button {
  margin: 0;
  flex: 0 0 auto;
}

.sp-home-decision-buttons .wp-block-button__link {
  min-width: 220px;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* Stack and centre on tablet + mobile */
@media (max-width: 999px) {
  .sp-home-decision-buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .sp-home-decision-buttons .wp-block-button {
    width: auto !important;
    margin: 0 auto !important;
    flex: 0 0 auto;
  }

  .sp-home-decision-buttons .wp-block-button__link {
    display: block;
    min-width: 240px;
    width: 240px;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }
}
.sp-home-hero h1 {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.sp-home-hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.click-card--labelled {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}

.click-card--labelled img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.click-card--labelled .click-card-overlay {
	border-radius: 10px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(6, 15, 41, 0.78) 0%,
    rgba(6, 15, 41, 0.48) 38%,
    rgba(6, 15, 41, 0.12) 68%,
    rgba(6, 15, 41, 0) 100%
  );
  pointer-events: none;
}

.click-card--labelled .click-card-copy {
  color: #fff;
  max-width: 80%;
}

.click-card--labelled .click-card-title {
  display: block;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.click-card--labelled .click-card-subtitle {
  display: block;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.35;
  margin-bottom: 14px;
  opacity: 0.95;
}

.click-card--labelled .click-card-cta {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1d49;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

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

@media (max-width: 999px) {
  .click-card--labelled .click-card-overlay {
    padding: 18px;
  }

  .click-card--labelled .click-card-title {
    font-size: 1.5rem;
  }

  .click-card--labelled .click-card-subtitle {
    font-size: 0.95rem;
  }

  .click-card--labelled .click-card-cta {
    font-size: 0.9rem;
  }
}
.sp-category-image {
  overflow: hidden;
  border-radius: 10px;
}

.sp-category-image img {
  display: block;
  width: 100%;
  height: auto;
}