/* ==========================================================================
   ROSEWIN SOLUTIONS — COMMON COMPONENT STYLES (NAVBAR, FOOTER, FLOATING BTNS)
   ========================================================================== */

:root {
  --bg: #F5F2FA;
  --bg2: #FFFFFF;
  --bg3: #FAF8FC;
  --ink: #1C1A22;
  --ink2: #48454F;
  --ink3: #87828E;
  --accent: #5B21B6;
  --accent-deep: #37115F;
  --accent-tint: #EFE6FA;
  --gold: #D97706;
  --gold-deep: #B45309;
  --gold-tint: #FEF3C7;
  --line: #E2DCEE;
  --line2: #EDE8F5;
  --shadow: 0 2px 20px rgba(28,27,25,0.06);
  --shadow2: 0 14px 46px rgba(28,27,25,0.12);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(100deg, #2C0E4E 0%, #5B21B6 46%, #6D2FCB 100%);
  box-shadow: 0 2px 24px rgba(44,14,78,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  animation: navSlideDown .6s ease both;
  animation-delay: .05s;
}
.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.nav-brand img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}
.nav-links li {
  white-space: nowrap;
}
.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.nav-shop-btn {
  background: linear-gradient(135deg, #EE008C 0%, #D8007E 100%);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 14px rgba(238,0,140,0.38);
  position: relative;
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
  animation: navShopPulse 3s infinite;
}
.nav-shop-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(238,0,140,0.58);
  color: #fff !important;
}
.nav-shop-btn svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}
.nav-shop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFD6ED;
  display: inline-block;
  box-shadow: 0 0 6px #FFD6ED;
  animation: shopDotBlink 1.5s infinite;
}
@keyframes navShopPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(238,0,140,0.35); }
  50% { box-shadow: 0 0 18px rgba(238,0,140,0.7); }
}
@keyframes shopDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(246,245,241,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--line2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.mobile-nav-close:hover {
  background: var(--line);
  transform: scale(1.1);
}
.mobile-nav-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  stroke-width: 2;
}
.mobile-nav a {
  font-family: 'Fraunces', serif;
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 0;
  letter-spacing: -0.01em;
}
.mobile-nav a:hover {
  color: var(--accent);
}
.mobile-nav .nav-cta-mobile {
  margin-top: 18px;
  background: var(--gold);
  color: #fff !important;
  padding: 14px 46px;
  border-radius: 980px;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}
.mobile-nav .nav-shop-mobile {
  margin-top: 10px;
  background: linear-gradient(135deg, #EE008C 0%, #D8007E 100%);
  color: #fff !important;
  padding: 14px 46px;
  border-radius: 980px;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(238,0,140,0.4);
  letter-spacing: 0;
}
.mobile-nav .nav-shop-mobile svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(100deg, #2C0E4E 0%, #5B21B6 46%, #6D2FCB 100%);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 44px 24px 34px;
  text-align: center;
}
.footer-logo-wrap {
  display: inline-flex;
  background: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  margin-bottom: 18px;
}
.footer-logo {
  height: 32px;
  display: block;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}
.footer-sub a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-bottom {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ===== FLOATING BUTTONS ===== */
.float-stack {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.float-tooltip {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.float-item:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  flex-shrink: 0;
}
.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.fab-call {
  background: var(--gold);
}
.fab-shop {
  background: linear-gradient(135deg, #EE008C 0%, #D8007E 100%);
  position: relative;
}
.fab-shop svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  transition: transform .3s ease;
  animation: shopCartWiggle 4s infinite;
}
.fab-shop::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(238,0,140,0.75);
  animation: shopFabPulse 2.2s cubic-bezier(0.24,0,0.38,1) infinite;
  pointer-events: none;
}
.fab-shop::after {
  content: '';
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1.5px solid rgba(216,0,126,0.45);
  animation: shopFabPulse 2.2s cubic-bezier(0.24,0,0.38,1) infinite .65s;
  pointer-events: none;
}
@keyframes shopFabPulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes shopCartWiggle {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-12deg); }
  92% { transform: rotate(12deg); }
  96% { transform: rotate(-6deg); }
  98% { transform: rotate(4deg); }
}

/* ===== SHOP MESSAGE CALLOUT BUBBLE (TOP OF CART ICON) ===== */
.float-item-shop {
  position: relative;
}
.shop-bubble-card {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 9px 14px 9px 12px;
  box-shadow: 0 10px 32px rgba(44,14,78,0.16), 0 3px 10px rgba(238,0,140,0.14);
  border: 1.5px solid #FBCFE8;
  text-decoration: none;
  max-width: 280px;
  width: max-content;
  text-align: left;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  transition: opacity .45s cubic-bezier(0.16, 1, 0.3, 1), transform .45s cubic-bezier(0.16, 1, 0.3, 1), visibility .45s ease, box-shadow .25s ease;
  pointer-events: auto;
}
.shop-bubble-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 38px rgba(44,14,78,0.22), 0 5px 16px rgba(238,0,140,0.25);
}
/* Smooth hide on scroll (gently drops towards the button & fades out) */
.shop-bubble-card.bubble-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
}
/* Hover override: hover reveals immediately */
.float-item-shop:hover .shop-bubble-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}
.float-item-shop:hover .shop-bubble-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
}
/* Speech bubble pointer pointing DOWN to the cart icon below */
.shop-bubble-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 2px 1px rgba(251,207,232,0.8));
}
.shop-bubble-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.shop-bubble-icon svg {
  width: 17px;
  height: 17px;
  stroke: #EE008C;
  fill: none;
}
.shop-bubble-content {
  display: flex;
  flex-direction: column;
}
.shop-bubble-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1C1A22;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 5px;
}
.shop-bubble-title span {
  color: #EE008C;
}
.shop-bubble-desc {
  font-size: 11px;
  color: #48454F;
  line-height: 1.35;
  margin-top: 2px;
  font-weight: 500;
}
@keyframes shopBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.fab-enq {
  background: #fff;
  border: 1.5px solid var(--line) !important;
}
.fab-top {
  background: var(--accent);
}
.fab-top svg {
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}
.float-item-top {
  display: none;
}
.float-item-top.show {
  display: flex;
}

/* Animations */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions,
  .nav-phone {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .float-stack {
    right: 16px;
    bottom: 20px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    height: 58px;
    padding: 0 18px;
  }
  .nav-brand img {
    height: 34px;
  }
  .shop-bubble-card {
    display: none;
  }
  .float-stack {
    right: 14px;
    bottom: 18px;
    gap: 10px;
  }
  .fab {
    width: 46px;
    height: 46px;
  }
}

