/* =========================================================
   FINOFERN – PREMIUM WHITE UI
   Theme: #009089
   Safe + deduplicated + mobile-friendly
   ========================================================= */

/* ---------------------------
   Theme Tokens
--------------------------- */
:root{
  --ff-brand: #009089;
  --ff-brand-600:#007c76;
  --ff-brand-700:#006b65;
  --ff-brand-50: #e8f6f5;

  --ff-text:#0f172a;       /* slate-900 */
  --ff-muted:#64748b;      /* slate-500 */
  --ff-border:#e7edf2;
  --ff-surface:#ffffff;

  --ff-shadow: 0 16px 40px rgba(2, 29, 27, .08);
  --ff-shadow-soft: 0 10px 26px rgba(2, 29, 27, .06);
  --ff-radius: 18px;
  --ff-radius-lg: 24px;
}

/* Background */
body {
  background: #ffffff !important;
  background-attachment: fixed;
  color: var(--ff-text);
}

/* Main spacing */
.site-main {
  padding-top: 8px;
  padding-bottom: 40px;
}

/* Bootstrap color overrides (keep, because other templates might rely) */
.text-success { color: var(--ff-brand) !important; }
.bg-success { background-color: var(--ff-brand) !important; }
.border-success { border-color: var(--ff-brand) !important; }

/* Buttons */
.btn-success{
  background-color: var(--ff-brand) !important;
  border-color: var(--ff-brand) !important;
  box-shadow: 0 10px 20px rgba(0,144,137,.18);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn-success:hover{
  background-color: var(--ff-brand-600) !important;
  border-color: var(--ff-brand-600) !important;
}
.btn-outline-success{
  color: var(--ff-brand-700) !important;
  border-color: rgba(0,144,137,.35) !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-outline-success:hover{
  background-color: var(--ff-brand) !important;
  border-color: var(--ff-brand) !important;
  color: #fff !important;
}

/* Theme color accents (keep) */
.theme-accent { color: var(--ff-brand); }
.theme-bg-accent { background-color: rgba(0, 144, 137, 0.05); }
.theme-border-accent { border-color: var(--ff-brand); }

/* Small polish */
.text-muted{ color: var(--ff-muted) !important; }
.rounded-pill{ letter-spacing: .01em; }

/* --------------------------------------------------
   SECTION SYSTEM (optional but safe if used)
-------------------------------------------------- */
.ff-section{
  padding: 2.25rem 0;
}
.ff-section-head{
  max-width: 760px;
  margin: 0 auto 1.25rem;
  text-align:center;
}
.ff-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .7rem;
  border-radius:999px;
  background: var(--ff-brand-50);
  color: var(--ff-brand-700);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.04em;
}
.ff-section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------
   PREMIUM HERO SECTION (keep only one system)
-------------------------------------------------- */
.hero-section{
  background: transparent;
}

/* Main Hero Wrapper */
.hero-main-wrapper{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 550px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.20);
}

/* Background layer */
.hero-main-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.hero-main-bg.fade-out{ opacity: 0; }

/* Ultra Light Premium Overlay */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 2;
}

/* Content layer */
.hero-content-layer{
  position: relative;
  z-index: 3;
  min-height: 550px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
}
.hero-text-content{ max-width: 700px; }

.hero-location{
  font-size: 0.9rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}
.hero-heading{
  line-height: 1.15;
  text-shadow: 0 6px 20px rgba(0,0,0,0.50);
}
.hero-description{
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 3px 10px rgba(0,0,0,0.40);
  max-width: 600px;
}

/* Horizontal cards container */
.hero-cards-container{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1.25rem;
  background: transparent !important;
}
.hero-cards-row{ margin-top: 2rem; }

/* Hero cards overlay bottom-right */
.hero-cards-overlay{
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  max-width: calc(100% - 4rem);
  overflow: hidden;
  background: transparent !important;
}
.hero-cards-overlay .hero-cards-container{
  justify-content: flex-end;
  gap: 1rem;
}

/* One definitive hero-card definition (no duplicates) */
.hero-card{
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  color:#fff;
  background-size: cover;
  background-position: 10% center !important; /* 80–95% nice range */
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .28s ease, box-shadow .28s ease;
  background-clip: padding-box;
}
.hero-cards-overlay .hero-card{
  width: 160px;
  height: 240px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.30);
}

.hero-card::before{
  display: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  background: none !important;
}
.hero-card-overlay{
  position:absolute;
  inset:0;
  background: none !important;
  z-index:2;
  background-clip: padding-box;
}
.hero-card,
.hero-card-overlay,
.hero-card::after {
  border-radius: 22px !important;
  overflow: hidden;
}
.hero-card-content{
  position: relative;
  z-index: 3;
  padding: 1.25rem;
  height: 100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.hero-card-title{
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.60);
}
.hero-card-subtitle{
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50);
}

/* Mobile Cards (horizontal scroll) */
.hero-cards-mobile{
  scrollbar-width: thin;
  scrollbar-color: var(--ff-brand) #f1f1f1;
}
.hero-cards-mobile::-webkit-scrollbar{ height: 6px; }
.hero-cards-mobile::-webkit-scrollbar-track{ background: #f1f1f1; border-radius: 10px; }
.hero-cards-mobile::-webkit-scrollbar-thumb{ background: var(--ff-brand); border-radius: 10px; }

.hero-card-mobile{
  min-width: 160px;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: 10% center !important; /* 80–95% nice range */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-card-mobile:active{ transform: scale(0.95); }

/* Legacy hero classes (keep for other templates) */
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px;
}
@media (max-width: 768px){
  .hero-content{ padding: 18px; }
}
.hero-left{ padding-bottom: 14px; }
.hero-kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.95;
}
.hero-title{
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
}
.hero-subtitle{ font-weight: 800; }
@media (max-width: 768px){
  .hero-title{ font-size: 34px; }
}
.hero-desc{
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}

/* HERO – CONTENT POSITION TUNING (keep, since you used it) */
.hero-content{ padding-top: 40px; }
.hero-left,
.hero-text-block{ margin-top: 200px; }

/* Keep hero-cards class (some pages may use it) */
.hero-cards{
  display: flex;
  gap: 14px;
  transform: translateY(0px);
}

/* Responsive */
@media (max-width: 992px){
  .hero-main-wrapper{ min-height: 400px; border-radius: 18px; }
  .hero-content-layer{ min-height: 400px; padding: 2.5rem 0; }
  .hero-heading{ font-size: 2.75rem !important; }
  .hero-text-content{ padding-bottom: 2rem !important; }
  .hero-cards-overlay{ 
    bottom: 1rem !important; 
    right: 1rem !important; 
  }
  .hero-cards-overlay .hero-card{
    width: 120px !important;
    height: 180px !important;
  }
}
@media (max-width: 576px){
  .hero-main-wrapper{ min-height: 320px; border-radius: 16px; }
  .hero-content-layer{ min-height: 320px; padding: 1.5rem 0; }
  .hero-heading{ font-size: 2rem !important; }
  .hero-description{ font-size: 1rem; }
  .hero-text-content{ padding-bottom: 1rem !important; }
  .hero-cards-overlay{ 
    bottom: 0.75rem !important; 
    right: 0.75rem !important; 
  }
  .hero-cards-overlay .hero-card{
    width: 40px !important;
    height: 50px !important;
  }
}

/* --------------------------------------------------
   CUSTOM HERO SLIDER STYLES
-------------------------------------------------- */
.custom-hero-slider{
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 15px;
}
.hero-background-container{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  z-index:1;
}
.hero-background-slide{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  opacity:0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), transform .8s ease;
}
.hero-background-slide.active{ opacity:1; z-index:2; }

.hero-content-overlay{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.hero-content-slide{
  opacity:0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-content-slide.active{
  opacity:1;
  transform: translateY(0);
}

/* Thumbnails */
.hero-thumbnails{
  position:absolute;
  top:50%; left:0; right:0;
  transform: translateY(-50%);
  z-index:4;
  pointer-events:none;
}
.hero-thumbnail{
  position:absolute;
  width:200px;
  height:120px;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
  transition: transform .35s ease, opacity .35s ease;
  cursor:pointer;
  pointer-events:auto;
}
.hero-thumbnail.left-thumbnail{
  left:2rem;
  transform: translateX(-100%) scale(0.85);
  opacity:0.7;
}
.hero-thumbnail.right-thumbnail{
  right:2rem;
  transform: translateX(100%) scale(0.85);
  opacity:0.7;
}
.thumbnail-slide{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transition: opacity .5s ease;
}
.thumbnail-slide.active{ opacity:1; }

.thumbnail-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}
.thumbnail-content{
  position:absolute;
  bottom:0; left:0; right:0;
  padding:12px;
  color:#fff;
}
.thumbnail-title{
  font-size:.85rem;
  font-weight:600;
  margin:0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.50);
}

/* Animations */
.hero-thumbnail.entering-left{
  animation: slideInFromLeft .8s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-thumbnail.exiting-right{
  animation: slideOutToRight .8s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-thumbnail.becoming-main{
  animation: becomeMain 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes slideInFromLeft{
  0%{ transform: translateX(-150%) scale(0.7); opacity:0; }
  100%{ transform: translateX(-100%) scale(0.85); opacity:.7; }
}
@keyframes slideOutToRight{
  0%{ transform: translateX(100%) scale(0.85); opacity:.7; }
  100%{ transform: translateX(150%) scale(0.7); opacity:0; }
}
@keyframes becomeMain{
  0%{ transform: translateX(-100%) scale(0.85); opacity:.7; }
  50%{ transform: translateX(0%) scale(1.05); opacity:1; }
  100%{ transform: translateX(0%) scale(1); opacity:1; }
}

/* Mobile responsiveness */
@media (max-width: 768px){
  .hero-thumbnails{ display:none; }
  .hero-content-overlay{ padding-bottom: 20px; }
  .hero-left{ margin-top: 100px; }
}
@media (max-width: 576px){
  .custom-hero-slider{ min-height: 350px; }
  .hero-left{ margin-top: 50px; }
}

/* --------------------------------------------------
   GLASS CARD (Products / Testimonials)
   Keep one definition only
-------------------------------------------------- */
.glass-card{
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--ff-radius);
  overflow: hidden;
  box-shadow: var(--ff-shadow-soft);
  height: 100%;
  display:flex;
  flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.glass-card img{
  width:100%;
  height:250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: transform .25s ease;
}

/* Product image wrapper classes used in template */
.glass-card__img-wrap{
  display:block;
  width:100%;
  height:220px;
  overflow:hidden;
  position:relative;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  background: #f7fafb;
}
.glass-card__img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position:center;
  display:block;
  transition: transform .25s ease;
}
.glass-card__placeholder{
  height:220px;
  background: #f5f5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9aa0a6;
}
.glass-card__body{
  padding: 16px;
}
.glass-card__body .price{ font-size: 1.05rem; }
.price{ color: var(--ff-brand-700) !important; }

/* Info section */
.info-section{
  background: rgba(0, 144, 137, 0.05);
  border-radius: 26px;
  padding: 3.5rem 2rem;
}

/* Step circle */
.step-circle{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ff-brand);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 144, 137, 0.20);
}

/* Why choose us icon (keep) */
.why-icon{
  background: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 10px;
}

/* Mobile tweaks for product cards */
@media (max-width: 576px){
  .glass-card{ border-radius: 14px; }
  .glass-card__img,
  .glass-card__placeholder{ height: 160px; }
  .glass-card__body{ padding: 12px; }
  .glass-card__body .btn{ padding: .25rem .65rem; }
  .glass-card__body h6{ font-size: .95rem; }

  .why-icon{
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
  }
  .info-section p{
    font-size: .82rem;
    line-height: 1.2rem;
  }
}

/* Cover photo section */
.ff-cover{
  border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border);
  box-shadow: var(--ff-shadow);
  overflow:hidden;
  background:
    radial-gradient(900px 300px at 20% 15%, rgba(0,144,137,.14), transparent 60%),
    linear-gradient(115deg, rgba(15,23,42,.92), rgba(15,23,42,.55));
  color:#fff;
  position:relative;
}
.ff-cover__inner{ padding: 2.2rem 1.25rem; }
@media (min-width: 768px){
  .ff-cover__inner{ padding: 3rem 2.2rem; }
}
.ff-cover__title{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.ff-cover__text{
  color: rgba(255,255,255,.78);
  max-width: 62ch;
}

/* Videos */
.ff-video-card{
  background:#fff;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-soft);
  overflow:hidden;
}

/* Reviews */
.ff-review-stars i{ color: #f5b301; }

/* Custom CTA */
.ff-cta{
  background: linear-gradient(135deg, rgba(0,144,137,1), rgba(0,124,118,1));
  color:#fff;
}
.ff-cta p{ color: rgba(255,255,255,.85) !important; }

/* --------------------------------------------------
   Scrollbar styling (keep, but valid)
-------------------------------------------------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8f9fa; }
::-webkit-scrollbar-thumb {
  background: var(--ff-brand);
  border-radius: 4px;
  transition: background-color .2s ease;
}
::-webkit-scrollbar-thumb:hover { background: #007a75; }

/* =========================================================
   HOVER + TOUCH BEHAVIOR (fixes “mobile hover not working”)
========================================================= */

/* Hover only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .glass-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--ff-shadow);
    border-color: rgba(0,144,137,.22);
    background: rgba(255,255,255,0.94);
  }
  .glass-card:hover .glass-card__img{ transform: scale(1.03); }
  .hero-card:hover{
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  }
  .hero-card:hover::before{
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
  }
  .hero-cards-overlay .hero-card:hover{
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.40);
  }
  .btn-success:hover,
  .btn-outline-success:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,144,137,.20);
  }
  /* Keep CTA gradient on hover (prevent glass-card hover from turning it white) */
  .ff-cta.glass-card:hover{
    background: linear-gradient(135deg, rgba(0,144,137,1), rgba(0,124,118,1)) !important;
    border-color: transparent !important;
  }
}

/* Tap feedback for touch devices */
@media (hover: none) and (pointer: coarse) {
  .glass-card:active{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(2,29,27,.10);
  }
  .btn-success:active,
  .btn-outline-success:active{
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,144,137,.18);
  }
}

/* Keyboard focus (premium + accessible) */
.glass-card:focus-within,
.btn:focus-visible,
a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,144,137,.18);
}








/* =========================
   MOBILE TAP FEEDBACK
   (replaces hover on touch)
========================= */

/* Remove ugly gray tap highlight on some browsers */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Touch devices: use :active + :focus-visible */
@media (hover: none) and (pointer: coarse) {

  /* Navbar links (inside collapsed menu too) */
  .ff-navlink:active,
  .nav-menu-text:active,
  .nav-link:active{
    background: rgba(0,144,137,.10) !important;
    color: #007c76 !important;
    transform: scale(0.99);
  }

  /* Hamburger button */
  .navbar-toggler:active{
    transform: scale(0.96);
  }

  /* Any button chip (Cart/Login) */
  .ff-chip:active,
  .btn:active{
    transform: scale(0.98);
    box-shadow: 0 10px 20px rgba(0,144,137,.16);
  }
}

/* Keyboard focus (also shows on some mobile taps) */
.navbar-toggler:focus-visible,
.ff-navlink:focus-visible,
.btn:focus-visible,
a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,144,137,.18);
  border-radius: 14px;
}




















/* ================================
   FINOFERN VIDEO SYSTEM (Stable)
================================ */

/* Section spacing */
.ff-video-section{
  padding: 5rem 0;
}

/* Glow border */
.ff-video-glow{
  position: relative;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(
    135deg,
    rgba(0,144,137,0.8),
    rgba(0,124,118,0.4),
    rgba(0,144,137,0.8)
  );
  box-shadow: 
    0 0 30px rgba(0,144,137,0.25),
    0 20px 40px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.ff-video-glow:hover{
  transform: translateY(-6px);
  box-shadow:
    0 0 45px rgba(0,144,137,0.4),
    0 25px 60px rgba(0,0,0,0.12);
}

/* Custom responsive video wrapper (no Bootstrap ratio) */
.ff-video-wrapper{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.ff-video-wrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}

/* Text */
.ff-video-text h3{
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.ff-video-text p{
  color: #64748b;
  line-height: 1.6;
}

.ff-video-tag{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0,144,137,.08);
  color: #009089;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 992px){
  .ff-video-section{
    padding: 3.5rem 0;
  }
  .ff-video-text{
    text-align: center;
  }
}














































































































/* --- HARD FIX: remove rectangular box behind hero cards --- */
.hero-cards-container,
.hero-cards-overlay,
#heroCards,
#heroCardsMobile {
  background: transparent !important;
}

/* If there is any wrapper around cards, make it transparent too */
.hero-card-wrap,
.hero-card-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Card must be the only clipped, rounded element */
.hero-card,
.hero-card-mobile {
  position: relative;
  overflow: hidden !important;
  border-radius: 22px !important;
  background-color: transparent !important;
  background-clip: padding-box;
}

/* Remove any rectangular overlay layer */
.hero-card-overlay {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 22px !important;
}

/* Remove any leftover pseudo elements that could show corners */
.hero-card::before,
.hero-card::after,
.hero-card-overlay::before,
.hero-card-overlay::after {
  border-radius: 22px !important;
}

/* If any of these pseudo layers are still visible, disable them */
.hero-card::before { content: none !important; }
.hero-card-overlay::before { content: none !important; }
.hero-card-overlay::after { content: none !important; }

/* Hover lift only on card itself */
@media (hover:hover) and (pointer:fine){
  .hero-card:hover{
    transform: translateY(-10px) !important;
  }
}

/* Ensure child elements don’t have separate transforms */
.hero-card * {
  transform: none !important;
}



/* =========================================
   HERO CARD RECTANGLE BACKGROUND FIX
   (containers must be transparent & not clip)
========================================= */

/* The overlay that contains cards must NOT paint anything */
.hero-cards-overlay,
.hero-cards-container,
#hero-cards {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

/* Important: do NOT clip cards on hover */
.hero-cards-overlay,
.hero-cards-container,
#hero-cards {
  overflow: visible !important;
}

/* Remove any filters/blur on containers (creates rectangular haze) */
.hero-cards-overlay,
.hero-cards-container,
#hero-cards {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Kill any pseudo elements on containers that could be drawing a rectangle */
.hero-cards-overlay::before,
.hero-cards-overlay::after,
.hero-cards-container::before,
.hero-cards-container::after,
#hero-cards::before,
#hero-cards::after {
  content: none !important;
}

/* Ensure the card itself is the ONLY visible painted box */
.hero-card{
  border-radius: 22px !important;
  overflow: hidden !important;
  background-color: transparent !important;
  background-clip: padding-box;
}

/* Make cards slightly smaller (as requested) */
.hero-cards-overlay .hero-card{
  width: 160px !important;
  height: 240px !important;
  border-radius: 22px !important;
}
.hero-card{
  width: 175px !important;
  height: 255px !important;
  border-radius: 22px !important;
}

/* Mobile size */
.hero-card-mobile{
  min-width: 155px !important;
  height: 225px !important;
  border-radius: 20px !important;
}

/* Hover lift applies only to card */
@media (hover:hover) and (pointer:fine){
  .hero-card:hover{
    transform: translateY(-10px) !important;
  }
}






























/* =========================================
   FINOFERN PREMIUM FOOTER (Lite Glass)
========================================= */

.ff-footer{
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f9fbfb 100%
  );
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Glass top section */
.ff-footer .border-bottom{
  border-color: rgba(0,0,0,0.06) !important;
}

/* Brand badge */
.ff-footer .rounded-circle{
  box-shadow: 0 6px 18px rgba(0,144,137,.25);
}

/* Newsletter glass card */
.ff-footer .rounded-4{
  background: rgba(255,255,255,.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,144,137,.15) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  transition: all .25s ease;
}

.ff-footer .rounded-4:hover{
  transform: translateY(-3px);
  box-shadow: 0 25px 55px rgba(0,0,0,.08);
}

/* Newsletter input */
.ff-footer input.form-control{
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  padding-left: 18px;
}

.ff-footer input.form-control:focus{
  border-color: #009089;
  box-shadow: 0 0 0 4px rgba(0,144,137,.12);
}

/* Subscribe button */
.ff-footer .btn{
  border-radius: 999px;
}

/* Section titles */
.ff-footer h6{
  letter-spacing: .08em;
  color: #009089 !important;
}

/* Footer links */
.ff-footer .list-unstyled a{
  transition: color .2s ease, transform .2s ease;
}

.ff-footer .list-unstyled a:hover{
  color: #009089 !important;
  transform: translateX(4px);
}

/* Social icons */
.ff-footer .btn.rounded-circle{
  width:40px;
  height:40px;
  border:1px solid rgba(0,144,137,.4);
  color:#009089;
  transition: all .25s ease;
}

.ff-footer .btn.rounded-circle:hover{
  background:#009089;
  color:#ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,144,137,.35);
}

/* Bottom bar */
.ff-footer .border-top{
  border-color: rgba(0,0,0,.06) !important;
}

/* Payment icons subtle */
.ff-footer .opacity-75 i{
  transition: transform .2s ease, opacity .2s ease;
}

.ff-footer .opacity-75 i:hover{
  opacity:1;
  transform: translateY(-2px);
}

/* Mobile spacing */
@media (max-width: 768px){
  .ff-footer{
    text-align:center;
  }

  .ff-footer .row{
    justify-content:center;
  }
}














/* Keep hero from stretching on very large screens */
.hero-section .hero-main-wrapper{
  max-width: 1320px;   /* same as Bootstrap container at xl/xxl */
  margin-left: auto;
  margin-right: auto;
}

/* If you're using container-fluid around hero, keep padding consistent */
.hero-section .container-fluid{
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 1400px){
  .hero-section .container-fluid{
    padding-left: 24px;
    padding-right: 24px;
  }
}





/* =========================================
   SHOP – MOBILE CATEGORY SYSTEM (Finofern)
   Uses existing tokens only
========================================= */

/* Mobile category bar container */
.ff-catbar{
  display:none;
  margin: 14px 0 18px;
}

.ff-catbar__scroller{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ff-catbar__scroller::-webkit-scrollbar{ height: 6px; }
.ff-catbar__scroller::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.12);
  border-radius: 999px;
}

/* Category chip */
.ff-cat-chip{
  flex:0 0 auto;
  scroll-snap-align:start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ff-border);
  background: #fff;
  color: var(--ff-text);
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(2, 29, 27, .06);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

/* Hover only on hover devices */
@media (hover:hover) and (pointer:fine){
  .ff-cat-chip:hover{
    background: var(--ff-brand-50);
    border-color: rgba(0,144,137,.28);
    color: var(--ff-brand-700);
    transform: translateY(-1px);
  }
}

/* Active class styling (optional if you add it later) */
.ff-cat-chip.is-active{
  background: var(--ff-brand);
  border-color: var(--ff-brand);
  color:#fff;
  box-shadow: 0 14px 28px rgba(0,144,137,.18);
}

/* Desktop sidebar: make it match premium tokens */
.ff-catcard{
  border: 1px solid var(--ff-border) !important;
  border-radius: var(--ff-radius) !important;
  box-shadow: var(--ff-shadow-soft);
}

.ff-catlink{
  border-left: 3px solid transparent;
  color: var(--ff-muted);
  border-radius: 12px;
  transition: all .16s ease;
}

.ff-catlink:hover,
.ff-catlink.active{
  background: var(--ff-brand-50);
  color: var(--ff-brand-700);
  border-left-color: var(--ff-brand);
  font-weight: 800;
}

/* Responsive behavior:
   - show mobile chips
   - hide desktop sidebar
*/
@media (max-width: 991.98px){
  .ff-catbar{ display:block; }
  .ff-cat-sidebar{ display:none; }
}



/* SHOP GRID — 2-up on mobile polish */
@media (max-width: 576px){
  .row.row-cols-2 > .col{ padding-left: 8px; padding-right: 8px; }
  .product-card{ border-radius: 14px; }
  .card-body{ padding: 12px !important; }
  .card-title{ font-size: .95rem; line-height: 1.25; }
  .card-text{ display:none; } /* optional: hides description to keep cards clean */
  .card-img-top{ height: 160px; }
  .btn-brand-outline{ padding: .35rem .6rem; font-size: .8rem; }
}





/* Light stock badge that still works with your overrides */
.ff-badge-soft-success{
  background: rgba(0,144,137,.10) !important;
  color: var(--ff-brand-700) !important;
  border: 1px solid rgba(0,144,137,.18) !important;
}

