
html,
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background: #f8f7f4;
}

.global-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 4rem);
}

.sidebar {
  width: 160px;
  display: none;
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.sidebar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .sidebar { display: block; }
  .main-content { max-width: calc(100% - 320px); }
}

.sidebar.color-5 { background-color: #da6f0d; }

.header-cart-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
  color: #001830;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}
.header-cart-icon:hover { color: #da6f0d; }
.header-cart-icon i { font-size: 1.5rem; }

#cart-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background-color: #da6f0d;
  border-radius: 9999px;
  border: 2px solid white;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  padding: 0 3px;
}
#cart-count-badge.show { display: flex; }

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #001830;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hamburger-btn:hover { color: #da6f0d; }

#hamburger-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  display: none;
  pointer-events: none;
  animation: badgePulse 2s ease-in-out infinite;
  color: white;
  font-size: 10px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#hamburger-badge.show { display: flex; }

@keyframes badgePulse {
  0%,
  100% { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.2); opacity: 0.8; }
}

.nav-secondary {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 48;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  height: 3rem;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
}
.nav-secondary::-webkit-scrollbar { display: none; }

.nav-secondary ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  justify-content: center;
  min-width: max-content;
  align-items: center;
  height: 100%;
}
.nav-secondary li { margin: 0 0.5rem; }

.nav-secondary a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}
.nav-secondary a.active       { color: #da6f0d !important; }
.nav-secondary a:not(.active) { color: #001830 !important; }
.nav-secondary a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav-secondary .hamburger-menu-btn {
  margin-right: 0.25rem;
  color: #001830;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.nav-secondary .hamburger-menu-btn:hover { color: #da6f0d; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-menu ul {
  list-style-type: none;
  padding: 0;
  width: 100%;
}
.mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  text-align: left;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.mobile-menu a:hover { background-color: rgba(255, 255, 255, 0.1); }

.mobile-menu a.menu-active,
.mobile-menu a.menu-active i {
  color: #da6f0d !important;
}

.user-profile-section {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}
.user-profile-section .profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.user-profile-section .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.user-profile-section .user-info { flex: 1; }
.user-profile-section .user-name {
  font-weight: 600;
  color: white;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
.user-profile-section .user-fullname {
  color: #da6f0d;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.2rem 0 0 0;
  line-height: 1.3;
  display: none;
}
.user-profile-section .user-fullname.is-visible { display: block; }
.user-profile-section .user-id {
  background-color: #da6f0d;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.85rem;
}
.user-profile-section .user-detail {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin: 0.25rem 0;
  line-height: 1.3;
}
.user-profile-section .balance {
  font-weight: 600;
  color: #da6f0d;
}
.user-profile-section .view-profile-btn,
.user-profile-section .logout-btn,
.user-profile-section .login-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  text-decoration: none;
}
.user-profile-section .view-profile-btn,
.user-profile-section .login-btn {
  background-color: #da6f0d;
}
.user-profile-section .view-profile-btn:hover,
.user-profile-section .login-btn:hover {
  background-color: #c2630c;
}
.user-profile-section .logout-btn {
  background-color: #3f3f46;
  margin-top: 0.5rem;
}
.user-profile-section .logout-btn:hover { background-color: #52525b; }
.user-profile-section .not-connected-section p {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

#countryPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 70;
  justify-content: center;
  align-items: center;
}
#countryPopup.show { display: flex; }

#countryPopup .popup-container {
  background-color: white;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 2rem;
}
#countryPopup .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  background: none;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
#countryPopup .close-btn:hover {
  background-color: #f3f4f6;
  color: #ef4444;
}
#countryPopup .popup-header {
  text-align: center;
  margin-bottom: 1rem;
}
#countryPopup .popup-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}
#countryPopup .popup-search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
#countryPopup .popup-search-wrap i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
  line-height: 1;
}
#countryPopup .popup-search {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}
#countryPopup .popup-search:focus {
  outline: none;
  border-color: #da6f0d;
  box-shadow: 0 0 0 3px rgba(218, 111, 13, 0.2);
}
#countryPopup .popup-options { display: flex; flex-direction: column; gap: 0.75rem; }

.country-option {
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.country-option:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}
.country-option.active {
  background-color: #da6f0d;
  color: white;
  border-color: #da6f0d;
}
.country-option.hidden-option { display: none; }

#countryNoResults {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
}
#countryNoResults.show { display: block; }
#countryNoResults i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  color: #d1d5db;
}
#countryNoResults p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-logo {
  width: 100px;
  height: 100px;
  background-image: url('https://i.postimg.cc/vBjDkrGd/logo-wafricastore.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: logoSpin 1.5s linear infinite;
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#search-section-wrapper { position: relative; z-index: 40; }
#search-placeholder      { display: none; height: 0; }
#search-placeholder.active { display: block; }

#search-section {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  transition: box-shadow 0.3s ease;
  z-index: 40;
}
#search-section.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  top: 7rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  animation: slideDownSearch 0.2s ease;
  z-index: 40;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  #search-section.is-sticky {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  #search-section.is-sticky {
    padding-left: 2rem;
    padding-right: 2rem;
    left: 160px !important;
    right: 160px !important;
  }
}
@keyframes slideDownSearch {
  from { transform: translateY(-8px); opacity: 0.8; }
  to   { transform: translateY(0);    opacity: 1; }
}

.search-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}
.search-filter-row .search-wrapper { flex: 1; min-width: 0; }
.search-filter-row .filter-wrapper  { flex-shrink: 0; }
#searchBar {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.advanced-filters-container {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #f9fafb;
}
.advanced-filters-container.show { display: flex; flex-wrap: wrap; gap: 1rem; }
.filter-group      { flex: 1 1 150px; }
.filter-group.half { flex: 1 1 calc(50% - 0.5rem); }

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #da6f0d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 1000;
}
#backToTop:hover {
  background-color: #b85d0a;
  transform: translateY(-2px);
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.seller-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  position: relative;
}
.seller-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.seller-cat-bar {
  background-color: #001830;
  color: white;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 38px;
  position: relative;
}
.seller-cat-bar .cats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.seller-cat-bar .cat-icon {
  font-size: 0.85rem;
  color: #da6f0d;
  flex-shrink: 0;
}
.seller-cat-bar .cat-tags-scroll {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  align-items: center;
  padding: 2px 0;
  position: relative;
}
.seller-cat-bar .cat-tags-scroll::-webkit-scrollbar { display: none; }
.seller-cat-bar .cat-tag {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(218, 111, 13, 0.9);
  color: white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.cat-scroll-btn.left  { left: 22px; }
.cat-scroll-btn.right { right: 42px; }
.seller-card:hover .cat-scroll-btn { pointer-events: auto; }
.seller-card:hover .cat-scroll-btn.visible { opacity: 1; }

.seller-cat-bar .more-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.seller-cat-bar .more-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.seller-body {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0.9rem 0.6rem;
}
.seller-avatar-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
}
.seller-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}
.seller-name-row .seller-name {
  font-size: 1rem;
  font-weight: 700;
  color: #001830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.seller-cert-inline {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.seller-info { flex: 1; min-width: 0; }

.seller-name {
  font-size: 1rem;
  font-weight: 700;
  color: #001830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.seller-desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seller-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.seller-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #da6f0d;
  font-weight: 600;
}
.seller-rating .reviews {
  color: #9ca3af;
  font-weight: 400;
}
.seller-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.seller-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.seller-status-badge.actif   { background: #dcfce7; color: #16a34a; }
.seller-status-badge.inactif { background: #fee2e2; color: #dc2626; }

.seller-bottom-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem 0.85rem;
}
.seller-fav-inline {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #9ca3af;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.seller-fav-inline:hover  { transform: scale(1.1); background: #fee2e2; border-color: #fca5a5; color: #e53e3e; }
.seller-fav-inline.is-fav { color: #e53e3e; background: #fee2e2; border-color: #fca5a5; }

#favSellerFilterBtn.fav-active {
  background: #da6f0d;
  color: white;
  border-color: #da6f0d;
}

.seller-cta {
  flex: 1;
  padding: 0.55rem;
  background: #da6f0d;
  color: white;
  border: none;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.seller-cta:hover { filter: brightness(0.92); }

#actionPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#actionPopup.show { display: flex; }

.action-popup-box {
  background: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: popupIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popupIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.action-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.action-popup-header .seller-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.action-popup-header img {
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  object-fit: cover;
}
.action-popup-header .seller-mini-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #001830;
}
.action-popup-header .close-ap {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1.2rem;
  padding: 0.2rem;
  border-radius: 50%;
  transition: color 0.2s;
  font-family: 'Poppins', sans-serif;
}
.action-popup-header .close-ap:hover { color: #ef4444; }

.action-popup-actions { padding: 0.5rem 0; }
.action-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
  transition: background 0.15s ease;
}
.action-btn:hover  { background: #f9fafb; }
.action-btn i      { width: 20px; text-align: center; font-size: 1rem; }
.action-btn.share i { color: #da6f0d; }
.action-btn.hide  i { color: #6b7280; }
.action-btn.unhide i{ color: #6b7280; }

#lp-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#lp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#sellers-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 480px)  { #sellers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { #sellers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { #sellers-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1280px) { #sellers-grid { grid-template-columns: repeat(4, 1fr); } }

.stars { color: #f59e0b; letter-spacing: -1px; }

.presentation-section {
  padding: 1rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}
.presentation-section p {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}
.presentation-section p:last-child  { margin-bottom: 0; }
.presentation-section p.title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.75rem;
}
.presentation-container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .presentation-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .presentation-container { padding-left: 2rem; padding-right: 2rem; }
}

footer {
  background-color: #001830;
  color: #9ca3af;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
footer p { font-size: 0.875rem; margin: 0; }

.hidden { display: none !important; }

.seller-hidden-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
.seller-hidden-overlay.show { display: flex; }
.seller-hidden-overlay button {
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: white;
  color: #001830;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.heart-pop {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.catalogue-header-section {
  position: relative;
  z-index: 30;
  background-color: #ffffff;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#qrScanBtn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  height: 50px;
  background: #001830;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,24,48,0.18);
}
#qrScanBtn:hover {
  background: #da6f0d;
  transform: translateY(-1px);
}
#qrScanBtn i { font-size: 1.1rem; }
@media (max-width: 479px) {
  #qrScanBtn .qr-btn-label { display: none; }
  #qrScanBtn { padding: 0 0.7rem; min-width: 50px; }
}

#qrPopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 95;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
#qrPopup.show { display: flex; }

.qr-popup-box {
  background: white;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: popupIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-popup-header {
  background: #001830;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qr-popup-header h2 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qr-popup-header h2 i { color: #da6f0d; font-size: 1.2rem; }

.qr-popup-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qr-popup-close:hover { background: rgba(255,255,255,0.25); }

.qr-popup-body { padding: 1.4rem; }

.qr-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.3rem;
}
.qr-mode-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: #6b7280;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.qr-mode-tab.active {
  background: white;
  color: #001830;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.qr-mode-tab i { font-size: 0.95rem; }

#qr-camera-panel { display: block; }
#qr-image-panel  { display: none; }

.qr-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
#qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.qr-frame {
  width: 65%;
  aspect-ratio: 1/1;
  position: relative;
}
.qr-frame::before,
.qr-frame::after,
.qr-frame > span::before,
.qr-frame > span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #da6f0d;
  border-style: solid;
}
.qr-frame::before  { top: 0; left: 0;  border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.qr-frame::after   { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.qr-frame > span::before { bottom: 0; left: 0;  border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.qr-frame > span::after  { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.qr-scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #da6f0d, transparent);
  top: 10%;
  animation: scanMove 2s linear infinite;
  border-radius: 2px;
  box-shadow: 0 0 8px #da6f0d88;
}
@keyframes scanMove {
  0%   { top: 10%; }
  50%  { top: 85%; }
  100% { top: 10%; }
}

.qr-canvas-hidden { display: none; }

#qr-camera-status {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
#qr-camera-status.error   { color: #ef4444; }
#qr-camera-status.success { color: #16a34a; font-weight: 600; }

.qr-camera-actions {
  display: flex;
  gap: 0.6rem;
}
.qr-cam-btn {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: 0.65rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
#qr-start-cam-btn {
  background: #da6f0d;
  color: white;
}
#qr-start-cam-btn:hover { background: #c2630c; }
#qr-flip-cam-btn {
  background: #f3f4f6;
  color: #374151;
  display: none;
}
#qr-flip-cam-btn:hover { background: #e5e7eb; }
#qr-flip-cam-btn.show  { display: flex; }

.qr-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  background: #fafafa;
  position: relative;
}
.qr-drop-zone:hover,
.qr-drop-zone.dragover {
  border-color: #da6f0d;
  background: #fff8f3;
}
.qr-drop-zone i {
  font-size: 2.5rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
  display: block;
  transition: color 0.2s;
}
.qr-drop-zone:hover i,
.qr-drop-zone.dragover i { color: #da6f0d; }
.qr-drop-zone p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 0.4rem;
  line-height: 1.5;
}
.qr-drop-zone .browse-link {
  color: #da6f0d;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.qr-drop-zone small {
  color: #9ca3af;
  font-size: 0.75rem;
}
#qr-file-input { display: none; }

#qr-image-preview-wrap {
  display: none;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f3f4f6;
  aspect-ratio: 1/1;
  max-height: 280px;
}
#qr-image-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#qr-image-preview-wrap .qr-img-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}
#qr-image-preview-wrap .qr-img-remove:hover { background: rgba(239,68,68,0.9); }

#qr-image-status {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
#qr-image-status.error   { color: #ef4444; }
#qr-image-status.success { color: #16a34a; font-weight: 600; }

.qr-decode-btn {
  width: 100%;
  padding: 0.75rem;
  background: #001830;
  color: white;
  border: none;
  border-radius: 0.65rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.qr-decode-btn:hover    { background: #da6f0d; }
.qr-decode-btn:disabled { background: #9ca3af; cursor: not-allowed; }

#qr-result-banner {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #dcfce7;
  border: 1.5px solid #86efac;
  align-items: center;
  gap: 0.75rem;
}
#qr-result-banner.show { display: flex; }
#qr-result-banner.error-state {
  background: #fee2e2;
  border-color: #fca5a5;
}
#qr-result-banner i { font-size: 1.2rem; color: #16a34a; flex-shrink: 0; }
#qr-result-banner.error-state i { color: #ef4444; }
#qr-result-banner .result-text { font-size: 0.82rem; flex: 1; min-width: 0; }
#qr-result-banner .result-text strong { display: block; color: #001830; font-size: 0.9rem; }
#qr-result-banner .result-text span   { color: #4b5563; word-break: break-all; }

.qr-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qr-scan-dot {
  color: #da6f0d;
  animation: badgePulse 1.5s ease-in-out infinite;
}

.qr-drop-zone.is-hidden       { display: none; }
#qr-image-preview-wrap.is-visible { display: block; }

.seller-reviews-hidden { display: none; }
.seller-status-hidden  { display: none; }