/* ==========================================================================
   Halacosmetics - Luxury Rose & Blush Pink Design System (AR/EN RTL/LTR)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Luxury Pink & Rose Palette */
  --primary-rose: #E85D75;
  --primary-rose-hover: #D0455E;
  --blush-pink: #F472B6;
  --soft-pink-bg: #FFF5F7;
  --card-pink-bg: #FFF9FA;
  --rose-gold: #D4A373;
  --champagne: #E6C594;
  --deep-berry: #4A0E2E;
  --velvet-noir: #200814;
  --text-muted: #715564;
  --porcelain: #FFFFFF;
  --border-pink: #FCE7F0;
  --border-focus: #F472B6;

  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(244, 114, 182, 0.22);
  --glass-shadow: 0 10px 30px rgba(232, 93, 117, 0.08);
  --card-shadow: 0 8px 24px rgba(74, 14, 46, 0.06);
  --card-hover-shadow: 0 16px 36px rgba(232, 93, 117, 0.15);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--soft-pink-bg);
  color: var(--velvet-noir);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

[dir="ltr"] body {
  font-family: 'Outfit', 'Playfair Display', -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--deep-berry);
  font-weight: 800;
  line-height: 1.3;
}

[dir="ltr"] .font-serif {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Global Announcement Topbar */
.topbar {
  background: linear-gradient(90deg, #E85D75 0%, #F472B6 50%, #D4A373 100%);
  color: #FFF;
  padding: 6px 0;
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  z-index: 50;
  letter-spacing: 0.2px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-notice {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.topbar-utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.topbar-link {
  color: #FFF;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.topbar-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.4);
}

.topbar-currency-select {
  display: inline-flex;
  align-items: center;
}

.topbar-select {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFF;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.topbar-select option {
  color: var(--velvet-noir);
  background: #FFF;
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* Glassmorphism Luxury Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-pink);
  box-shadow: 0 4px 20px rgba(232, 93, 117, 0.05);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(232, 93, 117, 0.3));
}

.brand-logo-img {
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--deep-berry);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-logo-title span {
  color: var(--primary-rose);
}

.brand-logo-badge {
  font-size: 0.65rem;
  color: #9E7B8E;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Live Typo-Tolerant Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 50px 0 20px;
  border: 1.5px solid var(--border-pink);
  border-radius: var(--radius-full);
  background: var(--porcelain);
  font-size: 0.9rem;
  color: var(--velvet-noir);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

[dir="rtl"] .search-input {
  padding: 0 20px 0 50px;
}

.search-input:focus {
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 4px rgba(232, 93, 117, 0.12);
  background: #FFF;
}

.search-icon-btn {
  position: absolute;
  inset-inline-end: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E85D75, #F472B6);
  border: none;
  color: #FFF;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(232, 93, 117, 0.3);
}

.search-icon-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.45);
}

/* Live Search Suggestions Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: 100%;
  background: var(--porcelain);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(74, 14, 46, 0.12);
  z-index: 100;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}

.search-dropdown.active {
  display: block;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-pink);
  transition: var(--transition);
  text-decoration: none;
  color: var(--velvet-noir);
}

.search-suggestion-item:hover {
  background: var(--soft-pink-bg);
}

.search-suggestion-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Header Actions: User Menu & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-pink);
  background: #FFF;
  color: var(--deep-berry);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.header-action-btn:hover {
  border-color: var(--primary-rose);
  color: var(--primary-rose);
  background: #FFF1F4;
  transform: translateY(-1px);
}

/* User Account Dropdown Menu */
.header-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  width: 230px;
  background: #FFF;
  border: 1px solid var(--border-pink);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(74, 14, 46, 0.15);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  animation: flyoutFadeIn 0.2s ease;
}

/* Invisible hover bridge connecting button and dropdown */
.header-user-dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
  display: block;
}

.header-user-menu:hover .header-user-dropdown,
.header-user-menu.open .header-user-dropdown,
.header-user-dropdown:hover {
  display: flex;
}

.dropdown-user-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-pink);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.dropdown-user-header strong {
  color: var(--deep-berry);
  font-size: 0.9rem;
}

.dropdown-user-header small {
  color: #715564;
  font-size: 0.75rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  color: var(--deep-berry);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #FFF1F4;
  color: var(--primary-rose);
}

.dropdown-item.admin-link {
  background: #FAF5F8;
  color: #4A0E2E;
}

.dropdown-item.admin-link:hover {
  background: #4A0E2E;
  color: #FFF;
}

.dropdown-item.logout-link {
  color: #DC2626;
}

.dropdown-item.logout-link:hover {
  background: #FEE2E2;
  color: #991B1B;
}

.admin-tag {
  background: #4A0E2E;
  color: #FFF;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.dropdown-item.admin-link:hover .admin-tag {
  background: #FFF;
  color: #4A0E2E;
}

/* Header Cart Button */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  background: linear-gradient(135deg, #E85D75 0%, #F472B6 100%);
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.3);
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
}

.header-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 117, 0.45);
}

.cart-count-bubble {
  background: #FFF;
  color: var(--primary-rose);
  font-size: 0.75rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Category Navigation Bar */
.nav-bar {
  background: #FFF;
  border-bottom: 1px solid var(--border-pink);
  position: relative;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(74, 14, 46, 0.02);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .nav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 8px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-inner::-webkit-scrollbar {
    display: none;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep-berry);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-rose);
  background: var(--soft-pink-bg);
  border-color: var(--border-pink);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-rose);
  background: #FFF1F4;
  border-color: var(--border-pink);
  font-weight: 800;
}

.nav-link-highlight {
  color: var(--deep-berry);
  font-weight: 800;
}

.nav-link-gold {
  color: #B45309;
  font-weight: 800;
}

.nav-link-offer {
  color: var(--primary-rose);
  font-weight: 800;
}

/* Nav Spin Wheel Button (Inline Aligned) */
.nav-spin-btn {
  background: linear-gradient(135deg, #E85D75 0%, #F472B6 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(232, 93, 117, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.nav-spin-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.45);
}

/* Luxury Hero Banner */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FFF1F4 0%, #FDF2F8 50%, #FCE7F0 100%);
  padding: 60px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--deep-berry);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Luxury Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-rose) 0%, #FB7185 100%);
  color: #FFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 93, 117, 0.28);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(232, 93, 117, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--porcelain);
  color: var(--deep-berry);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-pink);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary-rose);
  color: var(--primary-rose);
  background: var(--soft-pink-bg);
  transform: translateY(-3px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--rose-gold) 0%, #F59E0B 100%);
  color: #FFF;
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.28);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--porcelain);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(244, 114, 182, 0.4);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--soft-pink-bg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--primary-rose);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.card-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--deep-berry);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

/* Shade Swatches Picker */
.swatches-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px var(--border-pink);
  cursor: pointer;
  transition: var(--transition);
}

.swatch-dot.active, .swatch-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--primary-rose);
}

/* Price & Buy Actions */
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-rose);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 8, 20, 0.45);
  backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: -460px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--porcelain);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transition: inset-inline-end 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  inset-inline-end: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-pink);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-footer {
  padding: 20px;
  background: var(--soft-pink-bg);
  border-top: 1px solid var(--border-pink);
}

/* Free Shipping Progress Bar */
.shipping-progress-box {
  background: var(--card-pink-bg);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #FCE7F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #E85D75, #D4A373);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* BNPL Tabby & Tamara Badges */
.bnpl-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-pink-bg);
  border: 1px dashed var(--border-pink);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 14px 0;
}

.bnpl-logo {
  height: 20px;
  object-fit: contain;
}

/* Footer */
.main-footer {
  background: var(--velvet-noir);
  color: #FFF;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--blush-pink);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #E2D7DF;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--blush-pink);
  padding-inline-start: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #A38C9B;
}

/* Floating AI Chatbot Button */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-rose), var(--rose-gold));
  color: #FFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(232, 93, 117, 0.4);
  cursor: pointer;
  z-index: 150;
  transition: var(--transition);
  border: 2px solid #FFF;
}

.chatbot-fab:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: 96px;
  inset-inline-end: 24px;
  width: 360px;
  max-height: 520px;
  height: 500px;
  background: var(--porcelain);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(74, 14, 46, 0.18);
  z-index: 150;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-rose), var(--deep-berry));
  color: #FFF;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--soft-pink-bg);
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble.bot {
  background: var(--porcelain);
  color: var(--velvet-noir);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-bubble.user {
  background: var(--primary-rose);
  color: #FFF;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  background: var(--porcelain);
  border-top: 1px solid var(--border-pink);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.9rem;
}

.chat-send-btn {
  background: var(--primary-rose);
  color: #FFF;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Admin Luxury Control Panel - Sidebar, Accordions, Tabs & Unified Visuals
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #FDF4F7;
  width: 100%;
  position: relative;
  transition: var(--transition);
}

/* Admin Sidebar */
.admin-sidebar {
  width: 270px;
  min-width: 270px;
  background: linear-gradient(180deg, #1B0614 0%, #23091B 50%, #170410 100%);
  color: #FFF;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  border-inline-end: 1px solid rgba(244, 114, 182, 0.12);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.2);
  border-radius: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 114, 182, 0.4);
}

/* ==========================================================================
   Admin Luxury Control Panel - Sidebar, Accordions, Tabs & Unified Visuals
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #FDF4F7;
  width: 100%;
  position: relative;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  background: linear-gradient(180deg, #1B0614 0%, #23091B 50%, #170410 100%);
  color: #FFF;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: visible;
  z-index: 100;
  border-inline-end: 1px solid rgba(244, 114, 182, 0.12);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.2);
  border-radius: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 114, 182, 0.4);
}

/* Sidebar Brand Header */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  min-height: 52px;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFF;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E85D75, #F472B6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.sidebar-brand-title {
  color: #FFF;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.sidebar-brand-subtitle {
  color: #F472B6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Topbar Toggle Button */
.admin-toggle-btn {
  background: #FFF1F4;
  color: #4A0E2E;
  border: 1px solid #FCE7F0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.admin-toggle-btn:hover {
  background: #4A0E2E;
  color: #FFF;
  border-color: #4A0E2E;
  transform: scale(1.04);
}

/* Navigation Section Headers */
.nav-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9E7B8E;
  padding: 12px 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
}

/* Nav Group & Accordion Item */
.nav-group {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-nav-item,
.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #D1C5CC;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border: 1px solid transparent;
  width: 100%;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.admin-nav-item:hover,
.nav-group-header:hover {
  background: rgba(244, 114, 182, 0.1);
  color: #FFF;
  border-color: rgba(244, 114, 182, 0.2);
}

.admin-nav-item.active,
.nav-group.active > .nav-group-header {
  background: #4A0E2E;
  color: #FFF;
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 4px 14px rgba(74, 14, 46, 0.4);
}

.nav-item-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.nav-icon {
  font-size: 1.15rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-label {
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.72rem;
  color: #A18997;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-group.open > .nav-group-header .nav-group-chevron {
  transform: rotate(180deg);
  color: #F472B6;
}

/* Submenu Accordion Dropdown List */
.nav-sub-list {
  list-style: none;
  padding: 4px 0 4px 14px;
  margin: 2px 0 6px 14px;
  border-inline-start: 2px solid rgba(244, 114, 182, 0.18);
  display: none;
  flex-direction: column;
  gap: 2px;
}

[dir="rtl"] .nav-sub-list {
  padding: 4px 14px 4px 0;
  margin: 2px 14px 6px 0;
}

.nav-group.open > .nav-sub-list {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #C5B5BF;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.83rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-sub-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #715564;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-sub-item:hover {
  color: #FFF;
  background: rgba(244, 114, 182, 0.12);
  transform: translateX(4px);
}

[dir="rtl"] .nav-sub-item:hover {
  transform: translateX(-4px);
}

.nav-sub-item:hover .nav-sub-bullet,
.nav-sub-item.active .nav-sub-bullet {
  background: #F472B6;
  box-shadow: 0 0 8px #F472B6;
  transform: scale(1.3);
}

.nav-sub-item.active {
  color: #FFF;
  background: #4A0E2E;
  font-weight: 800;
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 2px 8px rgba(74, 14, 46, 0.3);
}

/* ==========================================================================
   Collapsed (Mini) Sidebar Mode & Flyouts
   ========================================================================== */

.admin-sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding: 20px 8px;
  overflow-x: visible !important;
}

.admin-sidebar.collapsed .sidebar-brand-box {
  justify-content: center;
  padding: 0 0 16px;
}

.admin-sidebar.collapsed .sidebar-brand-text,
.admin-sidebar.collapsed .nav-label,
.admin-sidebar.collapsed .nav-section-title,
.admin-sidebar.collapsed .nav-group-chevron {
  display: none !important;
}

.admin-sidebar.collapsed .admin-nav-item,
.admin-sidebar.collapsed .nav-group-header {
  justify-content: center;
  padding: 10px 0;
  border-radius: 10px;
}

.admin-sidebar.collapsed .nav-item-inner {
  justify-content: center;
  flex: none;
  width: 100%;
}

.admin-sidebar.collapsed .nav-sub-list {
  display: none !important;
}

/* Floating Flyout Menu on Hover in Collapsed Mode */
.nav-flyout {
  display: none;
  position: absolute;
  top: 0;
  width: 220px;
  background: #23081B;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  z-index: 99999;
}

/* Invisible bridge so mouse hover doesn't break between sidebar icon and flyout */
.nav-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
}

[dir="ltr"] .nav-flyout::before {
  left: -16px;
}
[dir="rtl"] .nav-flyout::before {
  right: -16px;
}

@keyframes flyoutFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

[dir="ltr"] .admin-sidebar.collapsed .nav-group:hover > .nav-flyout,
[dir="ltr"] .admin-sidebar.collapsed .admin-nav-item-wrapper:hover > .nav-flyout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  left: 100%;
  right: auto;
  margin-left: 10px;
  animation: flyoutFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .admin-sidebar.collapsed .nav-group:hover > .nav-flyout,
[dir="rtl"] .admin-sidebar.collapsed .admin-nav-item-wrapper:hover > .nav-flyout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  right: 100%;
  left: auto;
  margin-right: 10px;
  animation: flyoutFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-flyout-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F472B6;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.15);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-flyout .nav-sub-item {
  padding: 8px 10px;
}

/* Main Content Area Adaptability */
.admin-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: calc(100% - 270px);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar.collapsed ~ .admin-main-content {
  width: calc(100% - 72px);
}

.admin-top-nav {
  background: #FFF;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #FCE7F0;
  box-shadow: 0 2px 12px rgba(74, 14, 46, 0.03);
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-body {
  padding: 28px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* ==========================================================================
   Unified Admin Tabs System
   ========================================================================== */

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #FCE7F0;
  padding-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #FCE7F0;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #FFF1F4;
  color: #4A0E2E;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  font-family: inherit;
}

.admin-tab-btn:hover {
  background: #FCE7F0;
  color: #E85D75;
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  background: #4A0E2E;
  color: #FFF;
  border-color: #4A0E2E;
  box-shadow: 0 4px 14px rgba(74, 14, 46, 0.2);
}

/* ==========================================================================
   Unified Admin Badges & Status Pills
   ========================================================================== */

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge-rose {
  background: #FFF1F4;
  color: #E85D75;
  border: 1px solid #FCE7F0;
}

.badge-emerald {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.badge-amber {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-purple {
  background: #EDE9FE;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.badge-blue {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-red {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Mobile responsive drawer */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  }
  [dir="rtl"] .admin-sidebar {
    transform: translateX(100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .admin-main-content {
    width: 100% !important;
  }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
  .admin-sidebar-backdrop.active {
    display: block;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS SUITE (OPPOSITE TO CART DRAWER)
   ========================================================================== */
.floating-actions-bar {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(74, 14, 46, 0.25);
  color: #FFF;
  user-select: none;
}

.fab-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(74, 14, 46, 0.35);
}

.fab-btn:active {
  transform: scale(0.96);
}

.fab-icon {
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-tooltip {
  position: absolute;
  inset-inline-start: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #2B0E1A;
  color: #FFF;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(244, 114, 182, 0.3);
  z-index: 10000;
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* 1. Spin & Win Button */
.fab-spin {
  background: linear-gradient(135deg, #E85D75 0%, #F472B6 100%);
  color: #FFF;
}

/* 2. WhatsApp Button */
.fab-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF;
}

/* 3. Phone Button */
.fab-phone {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFF;
}

/* 4. Live Chat Button */
.fab-chat {
  background: linear-gradient(135deg, #4A0E2E 0%, #831843 100%);
  color: #FFF;
  border: 1.5px solid rgba(244, 114, 182, 0.5);
}

.fab-pulse-dot {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  width: 12px;
  height: 12px;
  background: #E85D75;
  border: 2px solid #FFF;
  border-radius: 50%;
  animation: fabPulse 1.5s infinite;
}

@keyframes fabPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 93, 117, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(232, 93, 117, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 93, 117, 0); }
}

/* Mobile responsive collapsed labels */
@media (max-width: 768px) {
  .floating-actions-bar {
    bottom: 18px;
    inset-inline-start: 14px;
    gap: 8px;
  }
  .fab-btn {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .fab-btn .fab-label {
    display: none;
  }
  .fab-spin {
    padding: 10px 14px;
    border-radius: 50px;
    width: auto;
    height: auto;
  }
  .fab-spin .fab-label {
    display: inline;
  }
}

/* ==========================================================================
   STOREFRONT LIVE CHAT WIDGET POPUP
   ========================================================================== */
.store-livechat-popup {
  position: fixed;
  bottom: 84px;
  inset-inline-start: 24px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 490px;
  max-height: calc(100vh - 120px);
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(74, 14, 46, 0.25);
  border: 1px solid #FCE7F0;
  display: none;
  flex-direction: column;
  z-index: 9995;
  overflow: hidden;
  animation: livechatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-livechat-popup.open {
  display: flex;
}

.store-livechat-popup.expanded {
  width: 540px;
  height: 680px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 100px);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(74, 14, 46, 0.35);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.livechat-expand-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.livechat-expand-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

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

.livechat-header {
  background: linear-gradient(135deg, #4A0E2E 0%, #701A4A 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
}

.livechat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.livechat-online-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #22C55E;
}

.livechat-close-btn {
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.livechat-close-btn:hover {
  opacity: 1;
}

.livechat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #FFFDFE;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  word-break: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg.bot .msg-bubble {
  background: #FFF1F4;
  color: #4A0E2E;
  border: 1px solid #FCE7F0;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 2px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #E85D75 0%, #F472B6 100%);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 14px 14px 2px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.2);
}

.msg-time {
  font-size: 0.68rem;
  color: #715564;
  margin-top: 3px;
}

.livechat-guest-bar {
  background: #FAF8FA;
  padding: 8px 12px;
  border-top: 1px solid #FCE7F0;
  display: flex;
  gap: 8px;
}

.livechat-guest-bar input {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.78rem;
  border: 1px solid #FCE7F0;
  border-radius: 6px;
  outline: none;
  background: #FFF;
  font-family: inherit;
}

.livechat-footer {
  padding: 12px 14px;
  background: #FFF;
  border-top: 1px solid #FCE7F0;
}

.livechat-footer form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.livechat-footer input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid #FCE7F0;
  border-radius: 24px;
  font-size: 0.88rem;
  outline: none;
  background: #FAF8FA;
  font-family: inherit;
}

.livechat-footer input:focus {
  background: #FFF;
  border-color: #E85D75;
}

.livechat-footer button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E85D75;
  color: #FFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.livechat-footer button:hover {
  background: #D8425C;
  transform: scale(1.06);
}


