/* =========================================================
   SAWA FOOD — Social media UI
   Uiverse-inspired social card + WhatsApp companion
   ========================================================= */
/* Floating controls: social launcher sits directly beside WhatsApp */
.social-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 9px;
  direction: ltr;
}
.social-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .98);
  color: #173d2a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  flex: 0 0 auto;
}
.social-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}
.social-toggle:focus-visible {
  outline: 3px solid rgba(28, 180, 99, .35);
  outline-offset: 3px;
}
.social-toggle-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.social-toggle-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-float.open .social-toggle {
  transform: rotate(45deg);
  background: #173d2a;
  color: #fff;
}
/* The actual Uiverse-style card */
.social-float-card {
  display: flex;
  width: 220px;
  height: 50px;
  background: rgba(255, 255, 255, .98);
  border-radius: 115px;
  padding-inline: 15px;
  position: relative;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px) scale(.92);
  transform-origin: right center;
  transition: opacity .28s ease, transform .28s ease;
}
.social-float.open .social-float-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.social-icons {
  cursor: pointer;
  display: flex;
  transition: all .5s ease;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #173d2a;
  font-weight: 700;
  font-size: 11px;
  width: 42px;
  height: 42px;
}
.social-icons > p, .social-icons > a {
  position: absolute;
  width: max-content;
  transition: all .7s ease;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  line-height: 1;
}
.social-icons > p {
  --var: -0%;
  top: var(--var);
  margin: 0;
  background: #173d2a;
  color: #fff;
  border-radius: 7px;
  padding: 5px 7px;
}
.social-icons > p::after {
  content: "";
  position: absolute;
  border-top: 8px solid #173d2a;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.social-icons > a {
  --var: -0%;
  bottom: var(--var);
  background: #d7a33d;
  color: #fff;
  border-radius: 7px;
  padding: 5px 7px;
}
.social-icons > a::after {
  content: "";
  position: absolute;
  border-bottom: 8px solid #d7a33d;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.social-icons:hover > a, .social-icons:hover > p {
  --var: -65%;
  opacity: 1;
}
.social-icons:hover {
  z-index: 15;
  transform: scale(1.08);
}
.social-float-card:hover > .social-icons:not(:hover) {
  filter: blur(2px);
  transform: scale(.84);
  opacity: .72;
}
.social-icons svg {
  height: 30px;
  width: 30px;
  display: block;
  transition: transform .25s ease;
}
.social-icons:hover svg {
  transform: scale(1.06);
}
.social-icons.youtube svg {
  color: #c91616;
}
.social-icons.instagram svg {
  color: #ff1493;
}
.social-icons.tiktok svg {
  color: #000;
}
/* Keep WhatsApp exactly as a separate companion button */
.social-float .whatsapp-float {
  position: relative;
  right: auto;
  bottom: auto;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  background: #168a4c !important;
  color: #fff !important;
  border: 3px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
  flex: 0 0 auto;
}
.social-float .whatsapp-float:before {
  inset: -7px !important;
}
.social-float .whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}
.social-float .whatsapp-float svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-float .whatsapp-float .social-fill {
  fill: currentColor;
  stroke: none;
}
/* Footer: same visual language, always visible */
.social-cards {
  display: flex;
  justify-content: flex-start;
  margin: 0px 32px 0px 32px;
}
.footer-social-card {
  display: flex;
  width: 220px;
  max-width: 100%;
  height: 50px;
  border-radius: 115px;
  padding-inline: 15px;
  justify-content: space-around;
}
.footer-social-card .social-icons {
  color: #fff;
}
.footer-social-card .social-icons:hover > p {
  background: #fff;
  color: #173d2a;
}
.footer-social-card .social-icons:hover > p::after {
  border-top-color: #fff;
}
.footer-social-card .social-icons:hover > a {
  background: #d7a33d;
}
@media(max-width:700px) {
  .social-float {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }
  .social-float-card {
    width: 196px;
    height: 48px;
    padding-inline: 11px;
  }
  .social-toggle {
    width: 44px;
    height: 44px;
  }
  .social-float .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }
  .social-float .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
  .social-icons {
    width: 22px;
    height: 22px;
  }
  .social-icons svg {
    width: 22px;
    height: 22px;
  }
  .footer-social-card {
    width: 196px;
  }
}
html[data-theme="light"] .social-toggle {
  background: #fff;
}
