.bg-color{
    background-color: #7323A8;
}

.bg-color:hover {
    background-color: #5e1d8a; /* darker shade */
    color: #fff;
}

.nav-hover:hover {
    color: #7323A8 !important;
  }


  /* Product cards use fixed flex-basis so pages are clean */
.product-card {
  flex: 0 0 clamp(220px, 24vw, 280px);
  height: 314px;
  scroll-snap-align: start;
  border: 2px solid var(--brand-3);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--ring);
}

/* Media zone */
.product-media {
  position: relative;
  background: var(--brand-2);
  border-radius: calc(var(--card-radius) - 6px);
  display: grid;
  place-items: center;
  height: 185px;
  overflow: hidden;
}
.product-media img {
  max-height: 78%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.05));
}

/* Flags */
.flag,
.discount-flag {
  --badge-bg: #a6cf5f;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--badge-bg);
  color: #fff;
  font-weight: 700;
  font-size: x-small;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px 0 999px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  -webkit-mask: none;
  mask: none;
}
.flag {
  background: #8ccc3a;
  border: 1px solid #d8f2d8;
}
.discount-flag {
  background: #8ccc3a;
  border: 1px solid #c9edd6;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f0f8e8;
  padding: 0 0.85rem;
  font-weight: 700;
  font-size: 0.6rem;
  border-radius: 999px;
}
.rating-badge i {
  font-size: 0.5rem;
  color: #3fb34f;
}

.badge{
      --badge-bg: #6f2da8;
  position: absolute;
  top: 10;
  left: 1;
  background: var(--badge-bg);
  color: #fff;
  font-weight: 700;
  font-size: x-small;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px 0 999px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  -webkit-mask: none;
  mask: none;
}


:root{
  --primary:#6f2dbd;
  --light-purple:#f3ebff;
}

/* ======================
   FILTER SIDEBAR
====================== */

.filter-sidebar{
  background:white;
  border-radius:20px;
  padding:10px;
}
.btn-border{
  border: 1px solid var(--primary);
}
.filter-title{
  font-weight:600;
  font-size:20px;
}

.form-check-input:checked{
  background-color:var(--primary);
  border-color:var(--primary);
}

.price-box{
  border:1px solid #e0d6f5;
  border-radius:10px;
  padding:10px;
  font-size:14px;
}

/* ======================
   TAGS
====================== */

.filter-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.filter-tag{
  border:1px solid var(--primary);
  color:var(--primary);
  padding:8px 14px;
  border-radius:30px;
  font-size:14px;
  background:white;
}

/* ======================
   PRODUCT CARD
====================== */

.product-card{
  background:white;
  border-radius:20px;
  padding:15px;
  border:1px solid #e9dfff;
  transition:0.3s;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.product-img{
  border-radius:16px;
  overflow:hidden;
  position:relative;
}

.product-img img{
  width:100%;
  height:230px;
  object-fit:cover;
  border-radius:16px;
}

.badge-featured{
  position:absolute;
  top:12px;
  left:12px;
  background:var(--primary);
  color:white;
  padding:5px 12px;
  font-size:12px;
  border-radius:10px;
}

.wishlist-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  background:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.price{
  font-weight:600;
  font-size:18px;
}

.location{
  font-size:13px;
  color:#888;
}

/* ======================
   RESPONSIVE
====================== */

@media(max-width:991px){
  .filter-sidebar{
    margin-bottom:20px;
    }
  }

  .borders{
    border: 1px solid #7323A8;
}

/* ===== THEME RANGE COLOR ===== */

.form-range::-webkit-slider-thumb {
  background-color: #7323A8;
}

.form-range::-webkit-slider-runnable-track {
  background-color: #e5d8f2;
}

.form-range::-moz-range-thumb {
  background-color: #7323A8;
  border: none;
}

.form-range::-moz-range-track {
  background-color: #e5d8f2;
}

.form-range::-ms-thumb {
  background-color: #7323A8;
}

.form-range::-ms-track {
  background-color: #e5d8f2;
  border-color: transparent;
  color: transparent;
}

.text-color{
  color: #7323A8;
}

/* =========================
   CUSTOM PAGINATION
========================= */

.custom-pagination .page-box {
  width: 48px;
  height: 48px;
  border: 1.5px solid #7323A8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: 0.2s ease;
}

.custom-pagination .page-box:hover {
  background: #f3e9fb;
  color: #7323A8;
}

.custom-pagination .page-box.active {
  background: #f3e9fb;
  color: #000;
  font-weight: 600;
}

.custom-pagination .dots {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

/* Card */
.seller-card {
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Header */
.seller-header {
  background-color: #f1eff4;
  padding: 22px 24px;
  border: none;
}

/* Contact option blocks */
.contact-option {
  background-color: #f3f1f5;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* Custom checkbox */
.custom-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #6f2da8;
}

.custom-check:checked {
  background-color: #6f2da8;
  border-color: #6f2da8;
}

/* Contact input section with left border */
.contact-input {
  padding-left: 20px;
  margin-bottom: 24px;
  border-left: 2px solid #e0dde6;
}

/* Pay Button */
.pay-btn {
  background-color: #6f2da8;
  border: none;
}

/* Modal background blur */
.modal {
  backdrop-filter: blur(6px);
}

/* Modal box */
.success-modal {
  border-radius: 24px;
  padding: 10px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Success tick image */
.success-icon {
  width: 90px;
  height: 90px;
}

/* Back button */
.back-btn {
  background-color: #6f2da8;
  color: #fff;
  border: none;
}
.btn-close {
  filter: brightness(0);
  opacity: 1;
}
.back-btn:hover {
  background-color: #5a2390;
}
.btn-border {
  border: 2px solid #6f2da8;
  color: #6f2da8;
  background-color: transparent;
  font-weight: 500;
}

.btn-border:hover,
.btn-border:focus,
.btn-border:active {
  border: 2px solid #6f2da8 !important;
  color: #6f2da8 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

    

/* Rounded pill buttons */
.nav-pill {
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 8px 20px;
  background: #fff;
}

/* Icon circle (bell) */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
}

/* Notification Dropdown */
.notification-box {
  width: 420px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  overflow: hidden;
}

.notification-header {
  border-bottom: 1px solid #eee;

}

.notification-item {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.notification-footer {
  background: #f8f8f8;
}

/* Remove bootstrap default arrow */
.dropdown-toggle::after {
  display: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #2e7d32; /* green */
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 991px) {

  .navbar-collapse {
    padding-top: 15px;
  }

  .nav-pill {
    width: 100%;
  }

  .icon-circle {
    width: 100%;
    border-radius: 50px;
  }

  .notification-box {
    width: 100%;
    max-width: 100%;
  }
}

    @media (max-width: 768px) {
      .position-relative {
        display: flex;
        justify-content: center;
        width: 100%;
      }
      
      .position-relative .dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-width: 320px; /* Optional: set a fixed width for mobile */
      }
    }

    /* Wrapper */
.cities-wrapper {
  max-width: 420px;
}

/* Box */
.cities-box {
  background: #f4f4f4;
  border-radius: 20px;
  padding: 10px 0;
  max-height: 360px;
  overflow-y: auto;
}

/* Each row */
.city-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  cursor: pointer;
  position: relative;
}

/* Divider */
.city-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 70px;
  right: 24px;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

/* Hide default radio */
.city-item input {
  display: none;
}

/* Custom radio outer */
.custom-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  position: relative;
  transition: 0.2s ease;
}

/* Inner purple circle */
.city-item input:checked + .custom-radio {
  border-color: #6f2da8;
}

.city-item input:checked + .custom-radio::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #6f2da8;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* City text */
.city-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Scrollbar styling */
.cities-box::-webkit-scrollbar {
  width: 6px;
}

.cities-box::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 10px;
}

.cities-box::-webkit-scrollbar-track {
  background: transparent;
}

/* ===================================== */
/* PERFECT MOBILE NAVBAR FIX */
/* ===================================== */

@media (max-width: 991.98px) {

  /* Collapse container spacing */
  .navbar-collapse {
    padding-top: 20px;
  }

  /* Remove ms-4 spacing */
  .navbar-collapse .ms-4 {
    margin-left: 0 !important;
  }

  /* Make all direct children full width */
  .navbar-collapse > div,
  .navbar-collapse > ul {
    width: 100%;
  }

  /* Stack left pills */
  .navbar-collapse .d-flex.align-items-center.gap-3.ms-4 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 20px;
  }

  /* Center menu stack */
  .navbar-nav {
    margin: 0 !important;
    flex-direction: column;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  /* Right section stack */
  .navbar-collapse > .d-flex.align-items-center.gap-3:last-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* Full width buttons */
  .nav-pill,
  .icon-circle {
    width: 100%;
    justify-content: flex-start !important;
  }

  /* Fix dropdown positioning inside collapse */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: 8px;
  }

  /* Notification width */
  .notification-box {
    width: 100%;
  }

  /* Account button alignment */
  .dropdown > .nav-pill {
    width: 100%;
  }
}


/* Title */
.contact-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-subtitle {
  color: #6c757d;
  font-size: 16px;
}

/* Card */
.contact-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

/* Header */
.card-header-custom {
  background: #f2f2f2;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 500;
  border-bottom: none;
}

/* Inputs */
.custom-input {
  border-radius: 30px;
  padding: 12px 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.3s ease;
}

.custom-input:focus {
  box-shadow: none;
  border-color: #6f2dbd;
}

/* Textarea */
textarea.custom-input {
  border-radius: 20px;
  resize: none;
}

/* Info boxes */
.info-box {
  background: #f4f4f4;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
}

/* Purple */
.text-purple {
  color: #6f2dbd;
}

/* Buttons */
.btn-clear {
  border-radius: 30px;
  padding: 10px 35px;
  border: 1.5px solid #6f2dbd;
  color: #6f2dbd;
  background: transparent;
}

.btn-submit {
  border-radius: 30px;
  padding: 10px 40px;
  background: #6f2dbd;
  color: #fff;
  border: none;
}

.btn-submit:hover {
  background: #5a23a3;
}


/* Title */
.about-title {
  font-size: 28px;
  font-weight: 600;
}

/* Hero Image */
.about-hero {
  border-radius: 24px;
  overflow: hidden;
}

.hero-img {
  border-radius: 24px;
  width: 100%;
  height: auto;      /* important */
  object-fit: contain; /* optional */
}

/* Bottom section */
.about-bottom {
  background: #e9e9e9;
}

.bottom-img {
  border-radius: 20px;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Paragraph styling */
.about-section p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ============================= */
/* MOBILE RESPONSIVE FIX */
/* ============================= */

@media (max-width: 991.98px) {

  .hero-img {
    height: 220px;
  }

  .bottom-img {
    height: auto;
    margin-bottom: 20px;
  }

  .about-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .about-section p {
    font-size: 13px;
  }

  .about-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 576px) {

  .hero-img {
    height: 180px;
  }

  .about-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}


/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 991px) {

  footer .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  footer .row > div {
    text-align: center;
  }

  footer ul {
    padding: 0;
  }

  footer .col-lg-3,
  footer .col-lg-2 {
    margin-bottom: 30px;
  }

  /* Newsletter input full width clean */
  footer .position-relative {
    max-width: 100%;
  }

  /* App buttons center */
  footer .d-flex.gap-3 {
    justify-content: center;
  }

  /* Social icons center */
  footer .fs-4 {
    justify-content: center;
  }

  /* Bottom section stack nicely */
  footer .d-flex.flex-column {
    text-align: center;
  }

}

/* Center logo only on mobile */
@media (max-width: 991px) {

  footer h3 {
    justify-content: center !important;
    text-align: center;
  }

}
  .page-title {
        font-size: 40px;
        font-weight: 600;
      }

      .page-subtitle {
        font-size: 18px;
        color: #6c757d;
      }

      /* Card Wrapper */
      .profile-card {
      
        border-radius: 24px;
        padding: 0;
        border: 1px solid #e2e2e2;
        overflow: hidden;
        max-width: 1050px;
      }

      .profile-header {
        background: #e9e9e9;
        padding: 25px 35px;
        font-size: 22px;
        font-weight: 500;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
      }

      .profile-body {
        padding: 40px 35px 50px 35px;
      }

      /* Profile Image */
   

      
      /* Upload Button */
 
.btn-remove:hover,
.btn-remove:focus,
.btn-remove:active {
  background-color: #F3F1F2 !important;
  color: #A32525 !important;
  border: none !important;
  box-shadow: none !important;
}
      .btn-upload:hover {
        background-color: #5a22a0;
      }

      /* Inputs */
      .form-control {
        height: 58px;
        border-radius: 50px;
        padding-left: 22px;
        border: 1px solid #dcdcdc;
        background-color: #fff;
      }

      .form-label {
        font-weight: 500;
        margin-bottom: 10px;
      }

      .required {
        color: #000;
      }
    .text-purple {
  color: #6f2da8;
}

/* ===============================
   MOBILE FIX ONLY
   Desktop remains EXACT same
================================ */
@media (max-width: 991px) {

  /* Make wrapper vertical */
  .container-fluid .border {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 15px;
    border-radius: 20px !important;
  }

  /* Right side buttons stack */
  .container-fluid .border > div {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* All buttons full width */
  .container-fluid .border .btn {
    width: 100%;
  }

}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

     .btn-upload {
        background-color: #6f2dbd;
        color: #fff;
        border-radius: 50px;
        padding: 10px 28px;
        font-weight: 500;
        border: none;
      }

        .btn-remove {
       background-color: #F3F1F2;
        color: #A32525;
        border-radius: 50px;
        padding: 10px 28px;
        font-weight: 500;
        border: none;
      }
 body[dir="rtl"]{
font-family:'Cairo', sans-serif;
}
.chat-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.chat-item.active {
  background: #f7f7f7;
}

.chat-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.chat-name {
  font-weight: 600;
  font-size: 14px;
}

.chat-msg {
  font-size: 12px;
  color: #777;
}

.chat-time {
  font-size: 11px;
  color: #aaa;
}

/* RIGHT PANEL */
.chat-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid #eee;
}

/* MOBILE */
@media (max-width: 768px) {

  .chat-list {
    width: 100%;
  }

  .chat-section {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    background: #fff;
    transition: 0.3s;
    z-index: 10;
  }

  .chat-section.active {
    right: 0;
  }

  .back-btn {
    display: block;
  }
}

/* hide back btn desktop */
.back-btn {
  display: none;
}



/* ===== CHAT LAYOUT ===== */
.chat-container {
  height: calc(100vh - 140px);
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

/* LEFT PANEL */
.chat-list {
  border-right: 1px solid #eee;
  overflow-y: auto;
  height: 100%;
}

.chat-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.chat-item:hover, .chat-item.active {
  background: #f9f4ff;
}

.chat-item .prod-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.chat-name {
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
}

.chat-prod-name {
  font-size: 11px;
  color: #7323A8;
  font-weight: 500;
}

.chat-price {
  font-size: 11px;
  color: #888;
}

.chat-time {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
}

/* RIGHT PANEL */
.chat-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}

.chat-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header .header-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.chat-header .header-status {
  font-size: 11px;
  color: #28a745;
}

/* CHAT BODY */
.chat-body {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f9f9f9;
}
/* BUBBLES */
.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 4px;
}

.bubble-row.sent {
  flex-direction: row-reverse;
}

.bubble-row.received {
  flex-direction: row;
}

/* Wrapper that holds bubble + time */
.bubble-row > div {
  display: flex;
  flex-direction: column;
  max-width: 60%;
}

.bubble-row.sent > div {
  align-items: flex-end;
}

.bubble-row.received > div {
  align-items: flex-start;
}

.chat-bubble {
  padding: 8px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  white-space: normal;
  display: block;          /* not inline-block */
  width: fit-content;
  max-width: 100%;
}

.bubble-row.sent .chat-bubble {
  background: #7323A8;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-row.received .chat-bubble {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #eee;
  border-bottom-left-radius: 4px;
}

.bubble-time {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
  margin-top: 2px;
  padding: 0 4px;
}

/* BUBBLE ACTIONS (edit/delete) - shown on hover */
.bubble-actions {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-self: flex-end;
  margin-bottom: 18px;   /* aligns with bubble vertically */
  flex-shrink: 0;
}

.bubble-row:hover .bubble-actions {
  display: flex;
}

.bubble-action-btn {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  color: #555;
  line-height: 1.6;
  transition: background 0.2s;
  white-space: nowrap;
}

.bubble-action-btn:hover {
  background: #f5f5f5;
}

.bubble-action-btn.del {
  color: #e53935;
}

/* CHAT FOOTER */
.chat-footer {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.chat-footer input {
  font-size: 13px;
  border-radius: 20px;
  padding: 7px 14px;
  border: 1px solid #ddd;
}

.chat-footer input:focus {
  border-color: #7323A8;
  box-shadow: none;
  outline: none;
}

.chat-footer .form-control {
    font-size: 13px;
    border-radius: 20px;
    padding: 7px 14px;
    border: 1px solid #ddd;
    height: 36px;
}

.chat-footer .form-control:focus {
    border-color: #7323A8;
    box-shadow: none;
}

.send-btn {
    background: #7323A8;
    color: #fff;
    border: none;
    border-radius: 50%;        /* circle button */
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #5e1c8a;
}

/* Fix bubble text wrapping */


/* MOBILE */
@media (max-width: 768px) {
  .chat-section {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    z-index: 9999;
    transition: right 0.3s;
  }

  .chat-section.active {
    right: 0;
  }

  .back-btn {
    display: block !important;
  }
}

/* hide back button desktop */
.back-btn {
  display: none;
}
.slider-wrapper {
    overflow: hidden;
}
.slider {
    overflow-x: auto;
    scrollbar-width: none;
}
.slider::-webkit-scrollbar {
    display: none;
}
.category-content {
    display: none;
}
.tab-pane {
        transition: opacity 0.15s ease;
      }
      
      
      
      .category-item.active i {
        color: white;
      }
      
      .nav-link.active-tab {
        color: #7323A8 !important;
        position: relative;
      }
      
      .nav-link.active-tab::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #7323A8;
      }

      /* Mobile categories scrollbar */
      .mobile-categories {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 8px 4px 16px 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
      }
      
      .mobile-categories::-webkit-scrollbar {
        height: 4px;
      }
      
      .mobile-categories::-webkit-scrollbar-thumb {
        background-color: #7323A8;
        border-radius: 20px;
      }
      
      .mobile-category-item {
        flex: 0 0 auto;
        padding: 8px 20px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .mobile-category-item.active {
        background: #7323A8;
        color: white;
        border-color: #7323A8;
      }

      /* Product cards */
      .product-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: transform 0.2s;
      }
      
      .product-card:hover {
        transform: translateY(-4px);
      }
      
      .product-card img {
        width: 100%;
        height: auto;
        margin-bottom: 12px;
      }
      
      .product-card p {
        margin: 0;
        font-weight: 500;
        color: #333;
      }
  .toast-msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
}

.toast-msg.show {
    opacity: 1;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #28a745;
}

input:checked + .slider:before {
  transform: translateX(22px);
}
.location-dropdown {
    max-height: 250px;
    overflow-y: auto;
}
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #6c757d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.unread-badge {
    background: #7323A8;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* bold name for unread */
.chat-item.has-unread .chat-name {
    color: #7323A8;
    font-weight: 700;
}