/* ==========================================================================
   Life Products Page — Modern water-themed layout
   ========================================================================== */

.page-life-products {
   background: #f0f7fc;
   background-image:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(95, 208, 255, 0.18), transparent),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(118, 171, 66, 0.08), transparent);
}

/* ----- Hero -------------------------------------------------------------- */
.life-products-hero {
   position: relative;
   min-height: 52vh;
   display: flex;
   align-items: center;
   padding: 140px 0 100px;
   overflow: hidden;
   margin-bottom: 0;
}

.life-products-hero-ripples {
   position: absolute;
   inset: 0;
   background: url('../img/intro.jpg') center/cover no-repeat;
   z-index: 0;
}

.life-products-hero-overlay {
   position: absolute;
   inset: 0;
   z-index: 1;
   pointer-events: none;
   background:
      radial-gradient(70% 90% at 15% 20%, rgba(95, 208, 255, 0.45), transparent 55%),
      radial-gradient(60% 80% at 85% 80%, rgba(10, 58, 102, 0.55), transparent 50%),
      linear-gradient(180deg, rgba(6, 42, 77, 0.35) 0%, rgba(6, 42, 77, 0.72) 100%);
}

.life-products-hero .container {
   position: relative;
   z-index: 2;
}

.life-products-hero-content {
   max-width: 640px;
   color: #fff;
   text-align: center;
   margin: 0 auto;
}

.life-products-hero-content .section-eyebrow {
   color: rgba(255, 255, 255, 0.85);
   border-color: rgba(255, 255, 255, 0.35);
   background: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(8px);
}

.life-products-hero-content h1 {
   font-size: clamp(36px, 5.5vw, 58px);
   font-weight: 800;
   line-height: 1.1;
   margin: 16px 0 20px;
   letter-spacing: -0.02em;
   text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.life-products-hero-content h1 em {
   font-style: normal;
   background: linear-gradient(90deg, #a4d56a, #5fd0ff);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

.life-products-hero-content .hero-lead {
   font-size: 17px;
   line-height: 1.65;
   opacity: 0.92;
   margin-bottom: 28px;
}

.life-products-hero-stats {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 12px;
}

.life-products-hero-stats span {
   padding: 8px 18px;
   border-radius: 999px;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: 0.4px;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.25);
   backdrop-filter: blur(10px);
}

.life-products-hero-wave {
   position: absolute;
   bottom: -1px;
   left: 0;
   right: 0;
   height: 80px;
   z-index: 3;
   line-height: 0;
}

.life-products-hero-wave svg {
   width: 100%;
   height: 100%;
   display: block;
}

/* ----- Main grid section ------------------------------------------------- */
.life-products-main {
   position: relative;
   padding: 48px 0 100px;
}

.life-products-main::before {
   content: "";
   position: absolute;
   width: 320px;
   height: 320px;
   top: 10%;
   left: -80px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(95, 208, 255, 0.12), transparent 70%);
   pointer-events: none;
}

/* ----- Filter pills ------------------------------------------------------ */
.life-products-page .product-pack-filter {
   margin-bottom: 48px;
}

.life-products-page .product-pack-filter ul {
   display: inline-flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
   padding: 8px;
   margin: 0;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.85);
   box-shadow: 0 8px 32px rgba(10, 40, 80, 0.08);
   border: 1px solid rgba(118, 171, 66, 0.15);
   backdrop-filter: blur(12px);
}

.life-products-page .product-pack-filter ul li {
   list-style: none;
   padding: 12px 26px;
   border-radius: 999px;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.3px;
   color: var(--c-muted);
   cursor: pointer;
   transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
   border: 1px solid transparent;
}

.life-products-page .product-pack-filter ul li:hover {
   color: var(--c-water-2);
   background: rgba(95, 208, 255, 0.1);
}

.life-products-page .product-pack-filter ul li.current {
   color: #fff;
   background: var(--grad-water);
   box-shadow: 0 6px 20px rgba(29, 139, 217, 0.35);
   border-color: transparent;
}

/* ----- Product cards ----------------------------------------------------- */
.life-product-grid > [class*="col-"] {
   margin-bottom: 36px;
}

.life-product-card {
   background: rgba(255, 255, 255, 0.92);
   border-radius: 24px;
   border: 1px solid rgba(95, 208, 255, 0.15);
   box-shadow:
      0 4px 24px rgba(10, 40, 80, 0.06),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset;
   overflow: hidden;
   height: 100%;
   display: flex;
   flex-direction: column;
   transition:
      transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.45s ease,
      border-color 0.35s ease;
}

.life-product-card:hover {
   transform: translateY(-10px);
   border-color: rgba(95, 208, 255, 0.45);
   box-shadow:
      0 24px 48px rgba(29, 139, 217, 0.18),
      0 0 40px rgba(95, 208, 255, 0.12);
}

.life-product-media {
   position: relative;
   overflow: hidden;
   cursor: pointer;
}

.life-product-media-featured {
   aspect-ratio: 2560 / 1810;
   padding: 0;
   background: linear-gradient(180deg, #f8fcff 0%, #e8f4fc 100%);
}

.life-product-media-featured img {
   position: relative;
   z-index: 1;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center center;
   display: block;
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.life-product-card:hover .life-product-media-featured img {
   transform: scale(1.04);
}

.life-product-media-glass-shot img {
   object-fit: cover;
   object-position: center 58%;
}

/* Water FX layers on images */
.life-product-water-fx {
   position: absolute;
   inset: 0;
   z-index: 2;
   pointer-events: none;
   overflow: hidden;
}

.life-product-water-shimmer {
   display: none;
}

.life-product-water-glow {
   position: absolute;
   inset: 0;
   background: linear-gradient(
      0deg,
      rgba(29, 139, 217, 0.35) 0%,
      rgba(95, 208, 255, 0.08) 35%,
      transparent 60%
   );
   opacity: 0.7;
   transition: opacity 0.4s ease;
}

.life-product-card:hover .life-product-water-glow {
   opacity: 1;
}

.life-product-water-wave {
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 200%;
   height: 48px;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M0,24 C150,48 350,0 600,24 C850,48 1050,0 1200,24 L1200,48 L0,48 Z'/%3E%3C/svg%3E") repeat-x;
   background-size: 50% 100%;
   animation: lpWaveDrift 6s linear infinite;
   opacity: 0.9;
}

@keyframes lpWaveDrift {
   0% { transform: translateX(0); }
   100% { transform: translateX(-50%); }
}

.life-product-droplet {
   position: absolute;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: radial-gradient(circle at 30% 30%, #fff, rgba(95, 208, 255, 0.8));
   box-shadow: 0 0 12px rgba(95, 208, 255, 0.6);
   opacity: 0;
   animation: lpDropletFloat 3s ease-in-out infinite;
}

.life-product-droplet--1 { left: 18%; bottom: 25%; animation-delay: 0s; }
.life-product-droplet--2 { left: 72%; bottom: 30%; animation-delay: 1.2s; width: 6px; height: 6px; }
.life-product-droplet--3 { left: 45%; bottom: 20%; animation-delay: 2.1s; width: 5px; height: 5px; }

.life-product-card:hover .life-product-droplet {
   opacity: 0.85;
}

@keyframes lpDropletFloat {
   0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
   15% { opacity: 0.7; }
   50% { transform: translateY(-28px) scale(0.6); opacity: 0.4; }
   85% { opacity: 0; }
}

/* Click ripple ring */
.life-product-ripple-ring {
   position: absolute;
   border-radius: 50%;
   border: 2px solid rgba(95, 208, 255, 0.7);
   transform: translate(-50%, -50%) scale(0);
   pointer-events: none;
   z-index: 4;
   animation: lpRippleRing 0.8s ease-out forwards;
}

@keyframes lpRippleRing {
   to {
      transform: translate(-50%, -50%) scale(4);
      opacity: 0;
      border-width: 1px;
   }
}

.life-product-badge {
   z-index: 5;
   backdrop-filter: blur(8px);
   box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.life-product-badge-glass {
   background: linear-gradient(135deg, #1d8bd9, #0a3a66) !important;
}

.life-product-zoom-hint {
   position: absolute;
   bottom: 14px;
   right: 14px;
   z-index: 5;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.9);
   color: var(--c-water-2);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 14px;
   opacity: 0;
   transform: scale(0.8);
   transition: all 0.35s ease;
   box-shadow: 0 4px 12px rgba(10, 40, 80, 0.15);
}

.life-product-card:hover .life-product-zoom-hint {
   opacity: 1;
   transform: scale(1);
}

.life-product-body {
   padding: 26px 24px 30px;
   background: linear-gradient(180deg, #fff 0%, #fafcfe 100%);
}

.life-product-body h3 {
   font-size: 19px;
   font-weight: 800;
   margin-bottom: 16px;
   letter-spacing: -0.02em;
}

.life-product-body h3 span {
   display: block;
   font-size: 15px;
   font-weight: 600;
   color: var(--c-water-2);
   margin-top: 4px;
}

.life-product-features li {
   font-size: 13px;
   padding: 6px 0 6px 22px;
}

.life-product-features li::before {
   color: var(--c-water-2);
   font-size: 11px;
}

.life-product-pack {
   margin-top: auto;
   padding-top: 14px;
   border-top: 1px dashed rgba(95, 208, 255, 0.25);
}

.life-product-pack small {
   font-size: 11px;
   font-weight: 600;
   color: var(--c-water-3);
   letter-spacing: 0.3px;
}

/* Filter transition */
.life-product-grid .item {
   transition: opacity 0.45s ease, transform 0.45s ease;
}

.life-product-grid .item.is-hiding {
   opacity: 0;
   transform: scale(0.96);
}

.life-product-grid .item.is-showing {
   animation: lpCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lpCardIn {
   from {
      opacity: 0;
      transform: translateY(24px) scale(0.95);
   }
   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* ----- CTA strip --------------------------------------------------------- */
.life-products-cta {
   margin-top: 20px;
   padding: 48px 40px;
   border-radius: 24px;
   text-align: center;
   position: relative;
   overflow: hidden;
   background: var(--grad-water);
   color: #fff;
   box-shadow: 0 20px 50px rgba(29, 139, 217, 0.3);
}

.life-products-cta::before {
   content: "";
   position: absolute;
   inset: 0;
   background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
   opacity: 0.5;
}

.life-products-cta .container-inner {
   position: relative;
   z-index: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.life-products-cta .cta-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   justify-content: center;
}

.life-products-cta h3 {
   font-size: clamp(22px, 3vw, 30px);
   font-weight: 800;
   margin-bottom: 12px;
   color: #fff;
}

.life-products-cta p {
   color: #fff;
   opacity: 1;
   margin-bottom: 24px;
   max-width: 520px;
   margin-left: auto;
   margin-right: auto;
}

.life-products-cta .btn-water {
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.life-products-cta .btn-ghost {
   display: inline-flex;
   align-items: center;
   padding: 14px 28px;
   border-radius: 999px;
   font-weight: 600;
   font-size: 14px;
   color: #fff;
   border: 2px solid rgba(255, 255, 255, 0.55);
   background: transparent;
   transition: background 0.3s ease, border-color 0.3s ease;
}

.life-products-cta .btn-ghost:hover {
   background: rgba(255, 255, 255, 0.15);
   border-color: #fff;
   color: #fff;
   text-decoration: none;
}

/* Override legacy section padding */
.page-life-products .fabon-work-area.life-products-main {
   padding-top: 0;
   background: transparent;
}

.page-life-products .fabon-work-area.life-products-main .site-heading {
   display: none;
}

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 991px) {
   .life-products-hero {
      min-height: 44vh;
      padding: 120px 0 80px;
   }
}

@media (max-width: 767px) {
   .life-products-page .product-pack-filter ul {
      border-radius: 20px;
      width: 100%;
   }

   .life-products-page .product-pack-filter ul li {
      padding: 10px 18px;
      font-size: 12px;
   }

   .life-products-cta {
      padding: 36px 24px;
   }
}

/* ----- Product detail modal ------------------------------------------------ */
.life-product-card {
   cursor: pointer;
}

.life-product-modal {
   position: fixed;
   inset: 0;
   z-index: 10000;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px 72px;
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition: opacity 0.4s ease, visibility 0.4s ease;
}

.life-product-modal.is-open {
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
}

.life-product-modal-overlay {
   position: absolute;
   inset: 0;
   z-index: 1;
   cursor: pointer;
   background: rgba(6, 42, 77, 0.72);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
}

.life-product-modal-dialog {
   position: relative;
   z-index: 2;
   flex: 1;
   width: 100%;
   max-width: 1140px;
   height: calc(100vh - 40px);
   max-height: 720px;
   overflow: hidden;
   border-radius: 28px;
   background: linear-gradient(145deg, #ffffff 0%, #f4faff 100%);
   box-shadow:
      0 40px 80px rgba(6, 42, 77, 0.35),
      0 0 0 1px rgba(95, 208, 255, 0.25) inset;
   transform: scale(0.92) translateY(24px);
   transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.life-product-modal.is-open .life-product-modal-dialog {
   transform: scale(1) translateY(0);
}

.life-product-modal-inner {
   display: grid;
   grid-template-columns: 1.05fr 0.95fr;
   gap: 0;
   height: 100%;
   min-height: 0;
   align-items: stretch;
}

.life-product-modal-visual {
   position: relative;
   background: linear-gradient(180deg, #e8f6ff 0%, #f8fcff 100%);
   padding: 0;
   display: flex;
   align-items: stretch;
   justify-content: stretch;
   min-height: 100%;
   height: 100%;
   overflow: hidden;
}

.life-product-modal-img-wrap {
   position: relative;
   flex: 1;
   width: 100%;
   height: 100%;
   min-height: 100%;
   border-radius: 0;
   overflow: hidden;
}

.life-product-modal-visual.is-glass .life-product-modal-img-wrap {
   max-height: none;
   width: 100%;
}

.life-product-modal-img-wrap .lpm-img {
   width: 100%;
   height: 100%;
   min-height: 100%;
   object-fit: cover;
   object-position: center center;
   display: block;
}

.life-product-modal-visual.is-glass .lpm-img {
   object-position: center 58%;
}

.life-product-modal-content {
   padding: 28px 36px 32px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   overflow: hidden;
   min-height: 0;
}

.lpm-badge {
   display: inline-block;
   align-self: flex-start;
   padding: 5px 12px;
   border-radius: 999px;
   font-size: 10px;
   font-weight: 700;
   letter-spacing: 0.8px;
   text-transform: uppercase;
   background: var(--grad-brand, linear-gradient(135deg, #76ab42, #4a8b2a));
   color: #fff;
   margin-bottom: 8px;
}

.lpm-badge.lpm-badge-glass {
   background: linear-gradient(135deg, #1d8bd9, #0a3a66);
}

.lpm-eyebrow {
   font-size: 10px;
   font-weight: 700;
   letter-spacing: 1.2px;
   text-transform: uppercase;
   color: var(--c-water-2, #1d8bd9);
   margin: 0 0 6px;
}

.lpm-title {
   font-size: clamp(22px, 2.5vw, 30px);
   font-weight: 800;
   color: var(--c-ink, #0d1b2a);
   margin: 0 0 8px;
   letter-spacing: -0.02em;
   line-height: 1.15;
}

.lpm-title span {
   display: block;
   font-size: 0.72em;
   font-weight: 600;
   color: var(--c-water-2, #1d8bd9);
   margin-top: 6px;
}

.lpm-tagline {
   font-size: 13px;
   color: var(--c-muted, #5a6a7a);
   margin: 0 0 16px;
}

.lpm-tagline .fa-tint {
   color: var(--c-water-2, #1d8bd9);
   margin-right: 6px;
}

.lpm-features {
   list-style: none;
   padding: 0;
   margin: 0 0 14px;
}

.lpm-features li {
   position: relative;
   padding: 5px 0 5px 24px;
   font-size: 13px;
   line-height: 1.4;
   color: var(--c-ink, #0d1b2a);
   opacity: 0;
   transform: translateX(20px);
}

.lpm-features li::before {
   content: "\f058";
   font-family: FontAwesome;
   position: absolute;
   left: 0;
   color: var(--c-water-2, #1d8bd9);
   font-size: 14px;
}

.lpm-pack {
   font-size: 12px;
   font-weight: 600;
   color: var(--c-water-3, #0a3a66);
   letter-spacing: 0.3px;
   padding: 12px 0 0;
   border-top: 1px dashed rgba(95, 208, 255, 0.35);
   margin: 0;
}

/* Staggered text animations */
.lpm-animate {
   opacity: 0;
   transform: translateY(16px);
   transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lpm-animate.lpm-in {
   opacity: 1;
   transform: translateY(0);
}

.lpm-features li.lpm-in {
   transform: translateX(0);
}

.life-product-modal-visual.lpm-animate {
   transform: translateX(-24px) scale(0.98);
}

.life-product-modal-visual.lpm-animate.lpm-in {
   transform: translateX(0) scale(1);
}

.life-product-modal-close {
   position: absolute;
   top: 16px;
   right: 16px;
   z-index: 10;
   width: 44px;
   height: 44px;
   border: none;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.95);
   color: var(--c-ink, #0d1b2a);
   font-size: 18px;
   cursor: pointer;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
   transition: transform 0.25s ease, background 0.25s ease;
}

.life-product-modal-close:hover {
   transform: rotate(90deg);
   background: #fff;
}

.life-product-modal-nav {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 12;
   width: 52px;
   height: 52px;
   border: 2px solid rgba(255, 255, 255, 0.5);
   border-radius: 50%;
   background: linear-gradient(135deg, #1d8bd9 0%, #0a3a66 100%);
   color: #fff;
   font-size: 20px;
   cursor: pointer;
   box-shadow: 0 8px 28px rgba(6, 42, 77, 0.45);
   transition: transform 0.25s ease, box-shadow 0.25s ease;
   pointer-events: auto;
}

.life-product-modal-nav:hover {
   transform: translateY(-50%) scale(1.1);
   box-shadow: 0 12px 32px rgba(29, 139, 217, 0.5);
}

.life-product-modal-prev {
   left: 12px;
}

.life-product-modal-next {
   right: 12px;
}

body.lpm-open {
   overflow: hidden;
}

@media (max-width: 991px) {
   .life-product-modal {
      padding: 16px 56px;
   }

   .life-product-modal-dialog {
      max-height: calc(100vh - 32px);
      height: calc(100vh - 32px);
   }

   .life-product-modal-nav {
      width: 44px;
      height: 44px;
      font-size: 16px;
   }

   .life-product-modal-prev {
      left: 6px;
   }

   .life-product-modal-next {
      right: 6px;
   }
}

@media (max-width: 767px) {
   .life-product-modal {
      padding: 12px 48px;
   }

   .life-product-modal-dialog {
      max-height: calc(100vh - 24px);
      height: auto;
      max-width: 100%;
   }

   .life-product-modal-inner {
      grid-template-columns: 1fr;
      height: auto;
   }

   .life-product-modal-visual {
      min-height: 220px;
      height: 38vh;
      max-height: 280px;
   }

   .life-product-modal-content {
      padding: 20px 22px 24px;
      overflow: visible;
   }

   .life-product-modal-nav {
      width: 40px;
      height: 40px;
      top: 50%;
      bottom: auto;
      transform: translateY(-50%);
   }

   .life-product-modal-nav:hover {
      transform: translateY(-50%) scale(1.08);
   }

   .life-product-modal-prev {
      left: 4px;
   }

   .life-product-modal-next {
      right: 4px;
   }
}

@media (prefers-reduced-motion: reduce) {
   .life-product-water-wave,
   .life-product-droplet {
      animation: none !important;
   }

   .life-product-card:hover .life-product-media-featured img {
      transform: none;
   }

   .lpm-animate,
   .lpm-features li {
      opacity: 1;
      transform: none;
      transition: none;
   }

   .life-product-modal-dialog {
      transform: none;
      transition: none;
   }
}
