/* 
   Missara Clothing - Core Design System & Styles
   Color Theme: Premium White & Pink with Gold Accents
   Typography: Playfair Display (Serif) & Outfit (Sans-Serif)
*/

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

:root {
  /* Colors */
  --primary-pink: #D14175;          /* Sophisticated Rose Pink */
  --primary-pink-hover: #B83262;
  --secondary-pink: #FFF5F7;        /* Soft Pastel Background Pink */
  --accent-pink: #F48FB1;           /* Lighter pink accents */
  --gold-accent: #D4AF37;           /* Elegant Warm Gold */
  --gold-hover: #B5932C;
  --text-dark: #2D2D2D;             /* Rich charcoal body text */
  --text-muted: #718096;            /* Secondary slate text */
  --bg-white: #FFFFFF;
  --bg-cream: #FCF9F6;              /* Warm cream backdrop */
  --border-light: #F0E6EA;          /* Soft border color */
  --shadow-sm: 0 1px 3px rgba(209, 65, 117, 0.08);
  --shadow-md: 0 4px 12px rgba(209, 65, 117, 0.08);
  --shadow-lg: 0 8px 24px rgba(209, 65, 117, 0.12);
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Layout constraints */
  --max-width: 1280px;
  --header-height: 110px;
}

/* CSS Resets & General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary-pink);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Announcement Bar Marquee */
.announcement-bar {
  background-color: var(--text-dark);
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.announcement-slider {
  display: flex;
  width: 100%;
  justify-content: center;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.announcement-item {
  padding: 0 40px;
  display: inline-block;
}

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

/* Header & Navigation Redesign */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Left actions (Menu and Search) */
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-start;
}

.menu-toggle-btn, .search-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.menu-toggle-btn:hover, .search-toggle-btn:hover {
  color: var(--primary-pink);
}

.menu-toggle-btn i, .search-toggle-btn i {
  font-size: 1.1rem;
}

/* Centered Logo */
.logo {
  flex: 0 0 auto;
  text-align: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.header-logo-img {
  position: absolute;
  left: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
}

.logo-dot {
  color: var(--gold-accent);
  margin-left: 2px;
  font-size: 2.5rem;
  line-height: 0;
  position: relative;
  top: 4px;
}

/* Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.contact-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  transition: color 0.3s ease;
  margin-right: 10px;
}

.contact-link:hover {
  color: var(--primary-pink);
}

.header-icon-btn {
  font-size: 1.3rem;
  color: var(--text-dark);
  position: relative;
  padding: 5px;
  transition: all 0.3s ease;
}

.header-icon-btn:hover {
  color: var(--primary-pink);
  transform: translateY(-2px);
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary-pink);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-white);
}

/* Hide navigation menu toggle on desktop by default in CSS fallback */
.menu-toggle {
  display: none;
}

/* Responsive constraints to keep elements aligned */
@media (max-width: 768px) {
  .menu-toggle-btn .btn-text,
  .search-toggle-btn .btn-text,
  .contact-link {
    display: none;
  }
  .header-left {
    gap: 16px;
  }
  .header-right {
    gap: 12px;
  }
}

/* Search Bar Dropdown Overlay */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
  display: none;
  z-index: 99;
  animation: slideDown 0.3s ease forwards;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  border: 1px solid var(--primary-pink);
  border-radius: 25px;
  overflow: hidden;
  padding: 2px;
}

.search-input {
  flex: 1;
  padding: 10px 20px;
  font-size: 1rem;
  color: var(--text-dark);
  background: none;
}

.search-submit {
  background-color: var(--primary-pink);
  color: var(--bg-white);
  padding: 0 25px;
  border-radius: 23px;
  font-weight: 500;
}

.search-submit:hover {
  background-color: var(--primary-pink-hover);
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Backdrops & Drawers */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.open {
  right: 0;
}

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

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
}

.drawer-close {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.drawer-close:hover {
  color: var(--primary-pink);
}

/* Cart Drawer Specifics */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart-msg {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.empty-cart-msg i {
  font-size: 3rem;
  color: var(--border-light);
  margin-bottom: 15px;
  display: block;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

.qty-btn:hover {
  background-color: var(--secondary-pink);
  border-color: var(--accent-pink);
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-pink);
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: var(--text-muted);
  align-self: flex-end;
}

.cart-item-remove:hover {
  color: #E53E3E;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--secondary-pink);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-pink);
  color: var(--bg-white);
  border: 1px solid var(--primary-pink);
}

.btn-primary:hover {
  background-color: var(--primary-pink-hover);
  border-color: var(--primary-pink-hover);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-pink);
  border: 1px solid var(--primary-pink);
}

.btn-secondary:hover {
  background-color: var(--secondary-pink);
}

.btn-gold {
  background-color: var(--gold-accent);
  color: var(--bg-white);
  border: 1px solid var(--gold-accent);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  left: -320px;
  right: auto;
  max-width: 320px;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  left: 0;
}

.mobile-nav-list {
  padding: 20px;
}

.mobile-nav-list li {
  margin-bottom: 20px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  padding: 5px 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-pink);
  padding-left: 5px;
}

/* Core Product Card Design */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  position: relative;
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--gold-accent);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 1px;
}

.out-of-stock-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #555555;
  color: var(--bg-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card.out-of-stock .product-main-img,
.product-card.out-of-stock .product-hover-img {
  filter: grayscale(100%) opacity(60%);
}

.product-card.out-of-stock .product-size-overlay {
  display: none !important;
}

.product-wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.product-wishlist-btn:hover {
  background-color: var(--bg-white);
  color: var(--primary-pink);
  transform: scale(1.1);
}

.product-wishlist-btn.active {
  color: var(--primary-pink);
}

.product-img-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: var(--secondary-pink);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.product-hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-main-img {
  opacity: 0;
  transform: scale(1.05);
}

.product-card:hover .product-hover-img {
  opacity: 1;
  transform: scale(1.05);
}

/* Quick Size Select Overlay */
.product-size-overlay {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.product-card:hover .product-size-overlay {
  bottom: 0;
}

.size-overlay-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.size-overlay-options {
  display: flex;
  gap: 6px;
}

.size-overlay-btn {
  font-size: 0.75rem;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.size-overlay-btn:hover {
  background-color: var(--primary-pink);
  color: var(--bg-white);
  border-color: var(--primary-pink);
}

.product-card-info {
  padding: 15px;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-title:hover {
  color: var(--primary-pink);
}

.product-card-rating {
  font-size: 0.8rem;
  color: #ECC94B;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-weight: 600;
  color: var(--primary-pink);
  font-size: 1.1rem;
}

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

.price-discount {
  color: #38A169;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Footer Section styling */
.main-footer {
  background-color: #1A1A1A;
  color: #E2E8F0;
  padding: 70px 0 30px;
  margin-top: 80px;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.footer-logo span {
  color: var(--primary-pink);
}

.footer-desc {
  font-size: 0.9rem;
  color: #A0AEC0;
  margin-bottom: 25px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2D2D2D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-pink);
  color: var(--bg-white);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-pink);
}

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

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

.footer-links a:hover {
  color: var(--primary-pink);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
  background-color: #2D2D2D;
  padding: 3px;
  border-radius: 4px;
}

.newsletter-input {
  flex: 1;
  background: none;
  padding: 10px 15px;
  font-size: 0.9rem;
  color: var(--bg-white);
}

.newsletter-btn {
  background-color: var(--primary-pink);
  color: var(--bg-white);
  padding: 0 20px;
  font-weight: 500;
  border-radius: 2px;
}

.newsletter-btn:hover {
  background-color: var(--primary-pink-hover);
}

.footer-bottom {
  border-top: 1px solid #2D2D2D;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #A0AEC0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--primary-pink);
}

/* Custom Fade & Slide Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #2D2D2D;
  color: var(--bg-white);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: #48BB78;
  font-size: 1.1rem;
}

.toast.error i {
  color: #F56565;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-img-wrapper {
    height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-img-wrapper {
    height: 380px;
  }
}

/* ==========================================
   CUSTOMER EMAIL INBOX SIMULATOR FLOATING WIDGET
   ========================================== */
.missara-inbox-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: var(--font-body);
}

.missara-inbox-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: var(--bg-white);
  box-shadow: 0 4px 16px rgba(209, 65, 117, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
}

.missara-inbox-btn:hover {
  background-color: var(--primary-pink-hover);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(209, 65, 117, 0.5);
}

.inbox-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--gold-accent);
  color: var(--bg-white);
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-white);
}

.missara-inbox-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-height: 520px;
  height: 80vh;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.missara-inbox-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.inbox-header {
  padding: 15px 20px;
  background-color: var(--secondary-pink);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inbox-close-btn {
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.inbox-close-btn:hover {
  color: var(--primary-pink);
}

.inbox-list {
  flex: 1;
  overflow-y: auto;
}

.inbox-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.inbox-item:hover {
  background-color: var(--secondary-pink);
}

.inbox-item.unread {
  background-color: rgba(209, 65, 117, 0.03);
  border-left: 3px solid var(--primary-pink);
}

.inbox-item.read {
  border-left: 3px solid transparent;
}

.email-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  overflow-y: auto;
  background-color: var(--bg-white);
}

.email-back-btn {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-pink);
  margin-bottom: 15px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.email-back-btn:hover {
  color: var(--primary-pink-hover);
  text-decoration: underline;
}

.email-viewer-meta {
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.email-viewer-content {
  flex: 1;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pulse-alert {
  animation: pulse 0.5s ease 2;
}

/* Modal styling helper for admin dashboard */
.form-group select.admin-select {
  width: 100%;
}

.qty-btn {
  cursor: pointer;
  user-select: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* Circular Categories Section */
.categories-section {
  padding-top: 60px;
  padding-bottom: 30px;
}

/* Reusable Circular Category Links style */
.categories-flex {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.category-circle-item {
  text-align: center;
  display: block;
  width: 140px;
}

.category-circle-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--border-light);
  transition: all 0.4s ease;
  background-color: var(--secondary-pink);
  padding: 2px;
}

.category-circle-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.category-circle-item:hover .category-circle-wrapper {
  border-color: var(--primary-pink);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-circle-item:hover img {
  transform: scale(1.1);
}

.category-circle-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
}

/* ==========================================
   PAGINATION CONTROLS
   ========================================== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 20px;
  flex-wrap: wrap;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: var(--secondary-pink);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-num-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0 10px;
}

.page-num-btn:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: var(--secondary-pink);
}

.page-num-btn.active {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(219, 34, 85, 0.25);
}

.page-ellipsis {
  color: var(--text-light);
  font-size: 1rem;
  padding: 0 4px;
  line-height: 42px;
}

/* ==========================================
   FLOATING AI ASSISTANT & SUPPORT WIDGET
   ========================================== */
.assistant-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  font-family: var(--font-body);
}

.assistant-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-pink);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(219, 34, 85, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assistant-trigger-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(219, 34, 85, 0.5);
}

.assistant-menu-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assistant-menu-options.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.assistant-sub-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  position: relative;
}

.assistant-sub-btn:hover {
  transform: scale(1.1);
}

.assistant-sub-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.assistant-sub-btn:hover::after {
  opacity: 1;
  right: 60px;
}

.btn-whatsapp { background: #25D366; }
.btn-ai-chat { background: #5850EC; }
.btn-ai-voice { background: #E02424; }

/* Modal Panels */
.assistant-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assistant-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.assistant-panel-header {
  padding: 18px 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-chat { background: linear-gradient(135deg, #5850EC, #8F93F7); }
.header-voice { background: linear-gradient(135deg, #E02424, #F05252); }

.assistant-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  flex-grow: 1;
  letter-spacing: 0.5px;
}

.assistant-panel-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.assistant-panel-close:hover {
  opacity: 1;
}

/* Chat Assistant Panel Body */
.chat-messages-container {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F9FAFB;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-bubble.bot {
  background: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.chat-bubble.user {
  background: var(--primary-pink);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-bar {
  display: flex;
  padding: 12px 15px;
  border-top: 1px solid var(--border-light);
  background: white;
  gap: 10px;
}

.chat-input-field {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}

.chat-input-field:focus {
  border-color: var(--primary-pink);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-pink);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #c2184d;
}

/* Voice Assistant Panel Body */
.voice-assistant-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #0B0F19;
  color: white;
}

.voice-status-text {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #9CA3AF;
  text-align: center;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 60px;
  margin-bottom: 40px;
}

.voice-wave-bar {
  width: 4px;
  height: 10px;
  background: #EF4444;
  border-radius: 2px;
  animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) { height: 25px; animation-delay: 0.15s; }
.voice-wave-bar:nth-child(3) { height: 45px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(4) { height: 30px; animation-delay: 0.45s; }
.voice-wave-bar:nth-child(5) { height: 15px; animation-delay: 0.6s; }

.voice-wave-container.silent .voice-wave-bar {
  animation: none;
  height: 4px;
  background: #4B5563;
}

.voice-mic-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #EF4444;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  transition: all 0.3s;
}

.voice-mic-btn.listening {
  animation: micPulse 1.5s infinite;
  background: #F87171;
}

.voice-transcript-box {
  margin-top: 30px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 15px;
  font-size: 0.85rem;
  min-height: 80px;
  border: 1px solid rgba(255,255,255,0.1);
  line-height: 1.5;
  text-align: center;
}

@keyframes voiceWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.2); }
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 480px) {
  .assistant-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* Chatbot Product Catalog Styling */
.chat-products-carousel {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 8px 4px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  scroll-behavior: smooth;
  width: 100%;
  margin-top: 4px;
}

.chat-products-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.chat-product-card {
  flex: 0 0 160px;
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.chat-product-img-wrapper {
  width: 100%;
  height: 110px;
  position: relative;
  overflow: hidden;
  background: #F3F4F6;
}

.chat-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-product-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
}

.chat-product-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
  margin: 0;
  height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.chat-product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #DB2255;
}

.chat-product-orig-price {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-decoration: line-through;
}

.chat-product-btn-group {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding: 4px 8px 8px;
}

.chat-product-btn {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.chat-product-view-btn {
  background: #F3F4F6;
  color: #4B5563;
}

.chat-product-view-btn:hover {
  background: #E5E7EB;
  color: #1F2937;
}

.chat-product-add-btn {
  background: #DB2255;
  color: white;
}

.chat-product-add-btn:hover {
  background: #B91C1C;
}

/* Floating Widget Button Animations */
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes aiChatPulse {
  0% { box-shadow: 0 4px 15px rgba(219, 34, 85, 0.3), 0 0 0 0 rgba(219, 34, 85, 0.5); }
  70% { box-shadow: 0 4px 15px rgba(219, 34, 85, 0.3), 0 0 0 12px rgba(219, 34, 85, 0); }
  100% { box-shadow: 0 4px 15px rgba(219, 34, 85, 0.3), 0 0 0 0 rgba(219, 34, 85, 0); }
}

@keyframes callPulse {
  0% { box-shadow: 0 4px 15px rgba(0, 118, 255, 0.3), 0 0 0 0 rgba(0, 118, 255, 0.5); }
  70% { box-shadow: 0 4px 15px rgba(0, 118, 255, 0.3), 0 0 0 12px rgba(0, 118, 255, 0); }
  100% { box-shadow: 0 4px 15px rgba(0, 118, 255, 0.3), 0 0 0 0 rgba(0, 118, 255, 0); }
}

@keyframes phoneShake {
  0%, 90%, 100% { transform: rotate(0); }
  92%, 96% { transform: rotate(-12deg); }
  94%, 98% { transform: rotate(12deg); }
}

@keyframes robotTilt {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(8deg) scale(1.05); }
}

/* Applying animations */
.animate-whatsapp-btn {
  animation: floatBounce 3.5s ease-in-out infinite, whatsappPulse 2s infinite !important;
}

.animate-aichat-btn {
  animation: floatBounce 3s ease-in-out infinite, aiChatPulse 2s infinite !important;
}

.animate-call-btn {
  animation: floatBounce 4s ease-in-out infinite, callPulse 2s infinite !important;
}

.animate-whatsapp-btn i {
  /* WhatsApp specific icon animation if needed */
}

.animate-aichat-btn i {
  display: inline-block;
  animation: robotTilt 3s ease-in-out infinite alternate;
}

.animate-call-btn i {
  display: inline-block;
  animation: phoneShake 4s ease-in-out infinite;
}



