/* ==========================================================================
   Samrat Power — landing page upgrade layer
   Product showcase, parallax decor, interactive cards, floating utilities,
   and standalone product pages (/shop/<slug>/).
   Everything is namespaced `sp-` so it can't collide with Elementor styles.
   Theme tokens are lifted from the Elementor kit (post-14.css).

   NOTE: the Elementor kit styles every <button> via `.elementor-kit-14
   button` (green bg, 15/30 padding, 20px radius). Our own <button>
   controls double their class selector (e.g. `.sp-thumb.sp-thumb`) to win
   that specificity war and explicitly reset those properties.
   ========================================================================== */

:root {
  --sp-green: #87C332;
  --sp-green-dark: #69A316;
  --sp-green-tint: #F5FAEE;
  --sp-ink: #1B1A1A;
  --sp-deep: #052730;
  --sp-text: #676767;
  --sp-red: #E5131E;
  --sp-card-radius: 22px;
  --sp-shadow-sm: 0 6px 18px rgba(5, 39, 48, 0.08);
  --sp-shadow-lg: 0 22px 45px -12px rgba(5, 39, 48, 0.22);
  --sp-ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Scroll progress bar
   -------------------------------------------------------------------------- */
.sp-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sp-green-dark), var(--sp-green));
  box-shadow: 0 0 10px rgba(135, 195, 50, 0.7);
  z-index: 99999;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Products section
   -------------------------------------------------------------------------- */
.sp-products {
  position: relative;
  scroll-margin-top: 40px;
  overflow: hidden;
  padding: 90px 20px 100px;
  background:
    radial-gradient(1200px 500px at 85% -5%, rgba(135, 195, 50, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--sp-green-tint) 55%, #ffffff 100%);
  font-family: "Poppins", sans-serif;
}

.sp-products__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 2;
}

/* Parallax decorations */
.sp-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.sp-orb {
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.sp-orb--a {
  width: 420px;
  height: 420px;
  top: 4%;
  left: -160px;
  background: radial-gradient(circle, rgba(135, 195, 50, 0.55), transparent 70%);
}

.sp-orb--b {
  width: 520px;
  height: 520px;
  bottom: -6%;
  right: -200px;
  background: radial-gradient(circle, rgba(5, 39, 48, 0.30), transparent 70%);
}

.sp-orb--c {
  width: 260px;
  height: 260px;
  top: 42%;
  right: 12%;
  background: radial-gradient(circle, rgba(135, 195, 50, 0.4), transparent 70%);
}

.sp-bolt {
  color: rgba(105, 163, 22, 0.16);
}

.sp-bolt svg {
  width: 100%;
  height: 100%;
}

.sp-bolt--a { width: 90px;  height: 90px;  top: 10%;  right: 6%;  transform: rotate(14deg); }
.sp-bolt--b { width: 60px;  height: 60px;  top: 58%;  left: 3%;   transform: rotate(-18deg); }
.sp-bolt--c { width: 120px; height: 120px; bottom: 6%; left: 44%; transform: rotate(8deg); }

/* Section heading — mirrors the theme's ghost-word + bold-title pattern */
.sp-products__head {
  position: relative;
  text-align: center;
  margin-bottom: 70px;
}

.sp-products__ghost {
  font-family: "Jost", sans-serif;
  font-size: clamp(64px, 12vw, 130px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #dfe5d3;
  user-select: none;
  display: block;
}

.sp-products__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--sp-ink);
  margin: -0.9em 0 0;
}

/* Brand words picked out in the logo's red (black SAMRAT, red M) */
.sp-products__title em {
  font-style: normal;
  color: var(--sp-red);
}

.sp-products__sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--sp-text);
  font-size: 16px;
  line-height: 1.7;
}

.sp-products__sub strong {
  color: var(--sp-deep);
}

/* --------------------------------------------------------------------------
   Featured card (Lithium Inverter)
   -------------------------------------------------------------------------- */
.sp-featured {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  background: #ffffff;
  border-radius: var(--sp-card-radius);
  box-shadow: var(--sp-shadow-sm);
  border: 1px solid rgba(5, 39, 48, 0.06);
  overflow: hidden;
  margin-bottom: 56px;
  transition: box-shadow 0.5s var(--sp-ease);
}

.sp-featured:hover {
  box-shadow: var(--sp-shadow-lg);
}

/* Same light studio backdrop as the photographed products */
.sp-featured__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f5f2 0%, #e8ebe4 100%);
  min-height: 380px;
  cursor: zoom-in;
}

.sp-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--sp-ease);
}

.sp-featured:hover .sp-featured__img {
  transform: scale(1.04);
}

.sp-featured__body {
  padding: 44px 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-featured__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-green-dark);
  background: rgba(135, 195, 50, 0.14);
  border: 1px solid rgba(135, 195, 50, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.sp-featured__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-green);
  box-shadow: 0 0 0 0 rgba(135, 195, 50, 0.7);
  animation: sp-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes sp-ping {
  0%   { box-shadow: 0 0 0 0 rgba(135, 195, 50, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(135, 195, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(135, 195, 50, 0); }
}

.sp-featured__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--sp-ink);
  margin: 0 0 14px;
  line-height: 1.2;
}

.sp-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--sp-ease);
}

.sp-featured__title a:hover {
  color: var(--sp-green-dark);
}

.sp-featured__desc {
  color: var(--sp-text);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 22px;
}

/* --------------------------------------------------------------------------
   Product grid + cards
   -------------------------------------------------------------------------- */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--sp-card-radius);
  border: 1px solid rgba(5, 39, 48, 0.06);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--sp-ease), box-shadow 0.5s var(--sp-ease);
  will-change: transform;
}

.sp-card:hover {
  box-shadow: var(--sp-shadow-lg);
}

/* glare sheen that follows the tilt */
.sp-card__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--sp-mx, 50%) var(--sp-my, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s var(--sp-ease);
}

.sp-card:hover .sp-card__glare {
  opacity: 1;
}

.sp-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f5f2, #e8ebe4);
  cursor: zoom-in;
}

.sp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--sp-ease), opacity 0.35s ease-in-out;
}

.sp-card:hover .sp-card__img {
  transform: scale(1.05);
}

/* sliding gallery track built by the JS from the dot buttons */
.sp-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.85s var(--sp-ease);
  will-change: transform;
}

.sp-track--snap {
  transition: none;
}

.sp-track > img {
  flex: 0 0 100%;
  min-width: 100%;
}

.sp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(120deg, var(--sp-green-dark), var(--sp-green));
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(105, 163, 22, 0.4);
}

.sp-badge--hot {
  background: linear-gradient(120deg, #c0111a, var(--sp-red));
  box-shadow: 0 6px 14px rgba(229, 19, 30, 0.35);
}

.sp-badge--dark {
  background: linear-gradient(120deg, #031a20, var(--sp-deep));
  box-shadow: 0 6px 14px rgba(5, 39, 48, 0.35);
}

/* --------------------------------------------------------------------------
   Gallery dots — small translucent white buttons over the photo.
   Doubled class + full reset to defeat `.elementor-kit-14 button`.
   -------------------------------------------------------------------------- */
.sp-thumbs {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 4;
}

.sp-thumb.sp-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.35);
  color: transparent;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(5, 39, 48, 0.35);
  transition: transform 0.3s var(--sp-ease), background 0.3s var(--sp-ease);
}

.sp-thumb.sp-thumb:hover,
.sp-thumb.sp-thumb:focus {
  background: rgba(255, 255, 255, 0.75);
  color: transparent;
  transform: scale(1.25);
  outline: none;
}

.sp-thumb.sp-thumb.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

.sp-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.sp-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--sp-ink);
  margin: 0 0 10px;
  line-height: 1.3;
}

.sp-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--sp-ease);
}

.sp-card__title a:hover {
  color: var(--sp-green-dark);
}

.sp-card__desc {
  color: var(--sp-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.sp-chips li {
  font-size: 12px;
  font-weight: 500;
  color: var(--sp-deep);
  background: var(--sp-green-tint);
  border: 1px solid rgba(135, 195, 50, 0.4);
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.3s var(--sp-ease), color 0.3s var(--sp-ease), transform 0.3s var(--sp-ease);
}

.sp-card:hover .sp-chips li,
.sp-featured:hover .sp-chips li {
  background: rgba(135, 195, 50, 0.18);
}

.sp-chips li:hover {
  transform: translateY(-2px);
  background: var(--sp-green);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Actions row: Buy Now (WhatsApp) + details link
   -------------------------------------------------------------------------- */
.sp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.sp-buy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(120deg, var(--sp-green-dark) 0%, var(--sp-green) 100%);
  box-shadow: 0 10px 22px -8px rgba(105, 163, 22, 0.65);
  overflow: hidden;
  transition: transform 0.35s var(--sp-ease), box-shadow 0.35s var(--sp-ease);
}

.sp-buy svg {
  width: 19px;
  height: 19px;
  flex: none;
  transition: transform 0.35s var(--sp-ease);
}

.sp-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -8px rgba(105, 163, 22, 0.8);
  color: #ffffff;
}

.sp-buy:hover svg {
  transform: rotate(-8deg) scale(1.15);
}

.sp-buy:active {
  transform: translateY(-1px) scale(0.98);
}

/* shine sweep */
.sp-buy::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--sp-ease);
}

.sp-buy:hover::after {
  left: 130%;
}

.sp-featured .sp-buy {
  padding: 15px 32px;
  font-size: 16px;
}

.sp-featured .sp-actions {
  justify-content: flex-start;
  gap: 26px;
}

.sp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-deep);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--sp-ease);
}

.sp-more::after {
  content: "\2192";
  transition: transform 0.3s var(--sp-ease);
}

.sp-more:hover {
  color: var(--sp-green-dark);
}

.sp-more:hover::after {
  transform: translateX(4px);
}

/* trust note under the grid */
.sp-products__note {
  text-align: center;
  margin-top: 46px;
  color: var(--sp-text);
  font-size: 14px;
}

.sp-products__note a {
  color: var(--sp-green-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--sp-green-dark);
}

.sp-products__note a:hover {
  color: var(--sp-deep);
  border-color: var(--sp-deep);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.sp-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease-out, transform 0.65s var(--sp-ease);
  transition-delay: var(--sp-delay, 0ms);
}

.sp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(3, 22, 27, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s;
}

.sp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.sp-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.35s var(--sp-ease);
}

.sp-lightbox.is-open img {
  transform: scale(1);
}

/* ghost-style close button (doubled class to beat the kit's button styles) */
.sp-lightbox__close.sp-lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background 0.3s var(--sp-ease), color 0.3s var(--sp-ease),
    border-color 0.3s var(--sp-ease), transform 0.3s var(--sp-ease);
}

.sp-lightbox__close.sp-lightbox__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sp-lightbox__close.sp-lightbox__close:hover,
.sp-lightbox__close.sp-lightbox__close:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--sp-deep);
  transform: scale(1.08);
  outline: none;
}

.sp-lightbox__caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp bubble + back-to-top
   -------------------------------------------------------------------------- */
.sp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2bb741, #25d366);
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.6);
  text-decoration: none;
  transition: transform 0.35s var(--sp-ease), box-shadow 0.35s var(--sp-ease);
}

.sp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: sp-fab-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes sp-fab-ping {
  0%   { transform: scale(1);    opacity: 1; }
  80%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.sp-fab svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.sp-fab:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 34px -6px rgba(37, 211, 102, 0.75);
}

.sp-fab__tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: var(--sp-deep);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--sp-ease), transform 0.3s var(--sp-ease);
}

.sp-fab__tip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--sp-deep);
}

.sp-fab:hover .sp-fab__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* doubled class to beat the kit's button styles */
.sp-top.sp-top {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 99990;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 39, 48, 0.88);
  color: #ffffff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--sp-ease), transform 0.4s var(--sp-ease),
    visibility 0.4s, background 0.3s var(--sp-ease);
}

.sp-top.sp-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sp-top.sp-top:hover,
.sp-top.sp-top:focus {
  background: var(--sp-green-dark);
  color: #ffffff;
  outline: none;
}

.sp-top.sp-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Product detail pages (/shop/<slug>/)
   -------------------------------------------------------------------------- */
.sp-page {
  margin: 0;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  color: var(--sp-ink);
}

.sp-pnav {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(5, 39, 48, 0.08);
}

.sp-pnav__logo img {
  height: 42px;
  width: auto;
  display: block;
}

.sp-pnav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sp-pnav__links a {
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sp-deep);
  text-decoration: none;
  transition: color 0.3s var(--sp-ease);
}

.sp-pnav__links a:hover {
  color: var(--sp-green-dark);
}

.sp-pnav .sp-buy {
  padding: 10px 20px;
  font-size: 14px;
}

.sp-pmain {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 40px) 70px;
}

.sp-crumbs {
  font-size: 13px;
  color: var(--sp-text);
  margin: 0 0 26px;
}

.sp-crumbs a {
  color: var(--sp-text);
  text-decoration: none;
  transition: color 0.3s var(--sp-ease);
}

.sp-crumbs a:hover {
  color: var(--sp-green-dark);
}

.sp-crumbs span {
  color: var(--sp-deep);
  font-weight: 500;
}

.sp-product {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.sp-pgallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--sp-card-radius);
  border: 1px solid rgba(5, 39, 48, 0.08);
  background: linear-gradient(160deg, #f4f5f2, #e8ebe4);
  box-shadow: var(--sp-shadow-sm);
  cursor: zoom-in;
}

.sp-pgallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--sp-ease), opacity 0.35s ease-in-out;
}

.sp-pgallery__media:hover .sp-pgallery__img {
  transform: scale(1.04);
}

/* transparent renders (e.g. the lithium inverter) sit inside the frame */
.sp-pgallery__img.sp-contain {
  object-fit: contain;
  padding: 26px;
}

.sp-pgallery__hint {
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--sp-text);
  text-align: center;
}

.sp-pinfo .sp-badge {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.sp-pinfo__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--sp-ink);
}

.sp-pinfo__desc {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--sp-text);
  margin: 0 0 22px;
}

.sp-pinfo .sp-chips {
  margin-bottom: 26px;
}

.sp-pinfo__features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-pinfo__features li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sp-deep);
}

.sp-pinfo__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sp-green-tint);
  border: 1px solid rgba(135, 195, 50, 0.5);
}

.sp-pinfo__features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--sp-green-dark);
  border-bottom: 2px solid var(--sp-green-dark);
  transform: rotate(-45deg);
}

.sp-pinfo__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.sp-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-deep);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(5, 39, 48, 0.18);
  transition: border-color 0.3s var(--sp-ease), color 0.3s var(--sp-ease),
    transform 0.3s var(--sp-ease);
}

.sp-call:hover {
  border-color: var(--sp-green-dark);
  color: var(--sp-green-dark);
  transform: translateY(-2px);
}

.sp-pinfo__note {
  font-size: 13px;
  color: var(--sp-text);
}

/* related products strip */
.sp-related {
  margin-top: 70px;
}

.sp-related__title {
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sp-ink);
  margin: 0 0 22px;
}

.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sp-related__card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(5, 39, 48, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sp-shadow-sm);
  transition: transform 0.4s var(--sp-ease), box-shadow 0.4s var(--sp-ease);
}

.sp-related__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sp-shadow-lg);
}

.sp-related__card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f5f2, #e8ebe4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-related__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--sp-ease);
}

.sp-related__card img.sp-contain {
  object-fit: contain;
  padding: 14px;
}

.sp-related__card:hover img {
  transform: scale(1.05);
}

.sp-related__name {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-ink);
  padding: 14px 16px 16px;
}

.sp-pfoot {
  border-top: 1px solid rgba(5, 39, 48, 0.08);
  background: var(--sp-green-tint);
  padding: 26px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--sp-text);
}

.sp-pfoot a {
  color: var(--sp-deep);
  font-weight: 500;
  text-decoration: none;
  margin-left: 18px;
  transition: color 0.3s var(--sp-ease);
}

.sp-pfoot a:first-child {
  margin-left: 0;
}

.sp-pfoot a:hover {
  color: var(--sp-green-dark);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-featured {
    grid-template-columns: 1fr;
  }

  .sp-featured__media {
    min-height: 320px;
  }

  .sp-featured__img {
    max-height: 300px;
  }

  .sp-featured__body {
    padding: 34px 30px 36px;
  }

  .sp-product {
    grid-template-columns: 1fr;
  }

  .sp-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-products {
    padding: 64px 16px 72px;
  }

  .sp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sp-products__head {
    margin-bottom: 48px;
  }

  .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-actions .sp-more {
    justify-content: center;
  }

  .sp-fab {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .sp-top.sp-top {
    right: 18px;
    bottom: 82px;
  }

  .sp-pnav__links a:not(.sp-buy) {
    display: none;
  }

  .sp-related__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — kill all decorative movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sp-featured__eyebrow::before,
  .sp-fab::before {
    animation: none;
  }

  .sp-card,
  .sp-card__img,
  .sp-featured__img,
  .sp-pgallery__img,
  .sp-track,
  .sp-buy,
  .sp-buy::after {
    transition: none;
  }

  .sp-deco {
    transform: none !important;
  }
}
