
html, body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.product-card {
  transition: all .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.badge {
  background-color: #001830;
  color: #fff;
  padding: .25rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  font-weight: 600;
}
.btn-primary  { background: #da6f0d; color: #fff; }
.btn-primary:hover { filter: brightness(.93); }
.btn-dark     { background: #001830; color: #fff; }
.btn-dark:hover { filter: brightness(1.15); }
.btn-ghost    { background: #fff; border: 1px solid #e5e7eb; color: #111827; }
.btn-ghost:hover { background: #f9fafb; }
.btn-added    { background-color: #001830; color: white; }

.popup-overlay { background: rgba(0,0,0,.85); }

.thumbnail.active { outline: 2px solid #da6f0d; cursor: pointer; }
.zoom-overlay     { background: rgba(0,0,0,.95); }

.spinner {
  width: 3rem; height: 3rem;
  border: 5px solid rgba(218,111,13,.2);
  border-top: 5px solid #da6f0d;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.image-placeholder {
  background: #e9ecef;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: .9rem;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#popup .popup-content { max-height: 90vh; overflow-y: auto; }
#popup #main-media,
#popup #main-video   { width: 100%; object-fit: contain; }
#popup .thumbnail    { width: 14vw; height: 14vw; min-width: 50px; min-height: 50px; }
#zoom-overlay #zoom-image { max-width: 95vw; max-height: 95vh; }
@media (max-width: 640px) {
  #popup #popup-title   { font-size: 1.5rem; }
  #popup .popup-content { padding: 1rem; }
}

#products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px)  { #products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px)  { #products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { #products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.product-card {
  display: flex; flex-direction: column;
  height: 100%; min-height: 240px;
  position: relative;
}
.product-card .p-4 {
  padding: 0.65rem;
  display: flex; flex-direction: column; flex-grow: 1;
}
.product-card h3 {
  -webkit-line-clamp: 2; line-clamp: 2;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.3rem;
  font-size: 0.82rem; line-height: 1.35;
}
.product-card .text-primary.font-bold,
.product-card .promo-price  { font-size: 0.85rem !important; margin-top: 0.1rem; }
.product-card .original-price { font-size: 0.74rem; }
.product-card .text-gray-600,
.product-card .text-gray-500  { font-size: 0.72rem; margin-top: 0.08rem; }
.product-card .badge          { font-size: 0.6rem; padding: 0.08rem 0.3rem; }
.product-card .promo-badge    { font-size: 0.6rem; padding: 0.08rem 0.28rem; }

@media (min-width: 640px) {
  .product-card h3                               { font-size: 0.88rem; }
  .product-card .text-primary.font-bold,
  .product-card .promo-price                     { font-size: 0.92rem !important; }
  .product-card .original-price                  { font-size: 0.78rem; }
  .product-card .text-gray-600,
  .product-card .text-gray-500                   { font-size: 0.76rem; }
  .product-card .badge                           { font-size: 0.64rem; }
  .product-card .promo-badge                     { font-size: 0.64rem; }
}
@media (min-width: 768px) {
  .product-card h3                               { font-size: 0.92rem; }
  .product-card .text-primary.font-bold,
  .product-card .promo-price                     { font-size: 0.98rem !important; }
  .product-card .original-price                  { font-size: 0.82rem; }
  .product-card .text-gray-600,
  .product-card .text-gray-500                   { font-size: 0.78rem; }
  .product-card .badge                           { font-size: 0.66rem; padding: 0.12rem 0.38rem; }
  .product-card .promo-badge                     { font-size: 0.66rem; }
}
@media (min-width: 1024px) {
  .product-card h3                               { font-size: 0.95rem; }
  .product-card .text-primary.font-bold,
  .product-card .promo-price                     { font-size: 1.02rem !important; }
  .product-card .original-price                  { font-size: 0.84rem; }
  .product-card .text-gray-600,
  .product-card .text-gray-500                   { font-size: 0.8rem; }
  .product-card .badge                           { font-size: 0.67rem; padding: 0.14rem 0.4rem; }
  .product-card .promo-badge                     { font-size: 0.67rem; padding: 0.1rem 0.32rem; }
}
@media (min-width: 1280px) {
  .product-card h3                               { font-size: 1rem; }
  .product-card .text-primary.font-bold,
  .product-card .promo-price                     { font-size: 1.08rem !important; }
  .product-card .original-price                  { font-size: 0.88rem; }
  .product-card .text-gray-600,
  .product-card .text-gray-500                   { font-size: 0.82rem; }
  .product-card .badge                           { font-size: 0.68rem; padding: 0.16rem 0.44rem; }
  .product-card .promo-badge                     { font-size: 0.68rem; padding: 0.12rem 0.36rem; }
}
@media (min-width: 1536px) {
  .product-card h3                               { font-size: 1.05rem; }
  .product-card .text-primary.font-bold,
  .product-card .promo-price                     { font-size: 1.14rem !important; }
  .product-card .original-price                  { font-size: 0.92rem; }
  .product-card .text-gray-600,
  .product-card .text-gray-500                   { font-size: 0.86rem; }
  .product-card .badge                           { font-size: 0.7rem; padding: 0.18rem 0.48rem; }
  .product-card .promo-badge                     { font-size: 0.7rem; padding: 0.14rem 0.4rem; }
}

.product-card .badge { display: none; }

#catalogue {
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
}

#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 {
    left: 160px !important; right: 160px !important;
    padding-left: 2rem; padding-right: 2rem;
  }
}
@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: 520px;
  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;
  box-sizing: border-box;
}
.advanced-filters-container.show {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
#search-section.is-sticky .advanced-filters-container.show {
  max-height: 55vh; overflow-y: auto;
}

.filter-group          { flex: 1 1 150px; }
.filter-group.wide     { flex: 1 1 100%; }
.filter-group.half     { flex: 1 1 calc(50% - 0.5rem); }
.filter-group.quarter-lg { flex: 1 1 calc(25% - 0.5rem); }
@media (min-width: 768px) {
  .filter-group.half       { flex: 1 1 calc(50% - 0.5rem); }
  .filter-group.quarter-lg { flex: 1 1 calc(25% - 0.5rem); }
}

#openMenu.active { color: #da6f0d; }

.promo-badge {
  background-color: #e53e3e; color: white;
  padding: 0.25rem 0.5rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; margin-left: 0.5rem;
}
.price-container         { display: flex; flex-direction: column; align-items: flex-start; }
.original-price          { text-decoration: line-through; color: #718096; font-size: 0.875rem; margin-bottom: 0.25rem; }
.promo-price             { color: #e53e3e; font-weight: bold; font-size: 1.25rem; }
.product-card .promo-price { font-size: 1.125rem; margin-top: 0.25rem; }
.discount-percentage {
  background-color: #e53e3e; color: white;
  padding: 0.1rem 0.4rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600;
  margin-left: 0.5rem; vertical-align: super;
}

.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; }

.hidden { display: none; }

#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); }

.presentation-section {
  padding: 1rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  z-index: 1;
}
.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;
}

footer {
  background-color: #001830; color: #9ca3af;
  padding-top: 1rem; padding-bottom: 3rem; z-index: 1;
}
footer p { font-size: 0.875rem; margin: 0; }
footer .footer-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
}

.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;   } }

#imageModal {
  display: none; position: fixed; z-index: 1001;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
#imageModalContent {
  margin: auto; display: block;
  width: 80%; max-width: 700px; max-height: 80vh; object-fit: contain;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
#imageModalClose {
  position: absolute; top: 15px; right: 35px;
  color: #f1f1f1; font-size: 40px; font-weight: bold;
  cursor: pointer; z-index: 1002;
}
#imageModalClose:hover { color: #bbb; }

#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); } }

.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;
  overflow-y: auto;
}
.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         { color: #da6f0d !important; }
.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-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 .login-btn {
  display: block; width: 100%; padding: 0.8rem;
  background-color: #da6f0d; 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;
}
.user-profile-section .view-profile-btn:hover,
.user-profile-section .login-btn:hover { background-color: #c2630c; }

.user-profile-section .logout-btn {
  display: block; width: 100%; padding: 0.8rem;
  background-color: #3f3f46; color: white; border: none;
  border-radius: 0.5rem; font-weight: 500; margin-top: 0.5rem;
  cursor: pointer; transition: background-color 0.2s ease;
  text-align: center; font-family: 'Poppins', sans-serif; font-size: 1rem;
}
.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; }

.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; }

#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; }

.lp-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  border-radius: inherit; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 0.6rem;
  opacity: 0; visibility: hidden; transform: scale(0.97);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.lp-overlay.visible {
  opacity: 1; visibility: visible;
  transform: scale(1); pointer-events: auto;
}

.lp-fav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  font-size: 1.15rem; color: #9ca3af;
  transition: color 0.2s ease, transform 0.18s ease, background 0.2s ease;
  opacity: 0; transform: scale(0.5) translateY(-6px);
  animation: none; outline: none; -webkit-tap-highlight-color: transparent;
}
.lp-overlay.visible .lp-fav-btn {
  animation: favBtnPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.06s forwards;
}
@keyframes favBtnPop {
  from { opacity: 0; transform: scale(0.5) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.lp-fav-btn:hover    { transform: scale(1.12); background: #fff5ee; }
.lp-fav-btn.is-fav   { color: #e53e3e; background: #fff5ee; }
.lp-fav-btn.is-fav i { animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes heartPop {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9);  }
  100% { transform: scale(1);    }
}

.lp-cart-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  font-size: 1.05rem; color: #6b7280;
  transition: color 0.2s ease, transform 0.18s ease, background 0.2s ease;
  opacity: 0; transform: scale(0.5) translateY(-6px);
  animation: none; outline: none; -webkit-tap-highlight-color: transparent;
}
.lp-overlay.visible .lp-cart-btn {
  animation: favBtnPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.02s forwards;
}
.lp-cart-btn:hover  { transform: scale(1.12); background: #fff5ee; color: #da6f0d; }
.lp-cart-btn.in-cart { color: #da6f0d; background: #fff5ee; }
.lp-cart-btn.in-cart i { animation: cartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes cartPop {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9);  }
  100% { transform: scale(1);    }
}

.lp-no-select { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }

#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); }
#lp-toast i    { font-size: 1rem; }

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}
.carousel-nav:hover { background-color: rgba(255,255,255,1); }
.carousel-nav i     { color: #001830; font-size: 1rem; }
.carousel-nav.prev  { left: 10px; }
.carousel-nav.next  { right: 10px; }

#searchBar.prefilled {
  border-color: #da6f0d;
  box-shadow: 0 0 0 3px rgba(218,111,13,0.15);
}

.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; }
.sidebar.left-sidebar::before,
.sidebar.right-sidebar::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0.05; z-index: 0;
}

.tendance-badge { display: none !important; }

#activeFilterBanner          { display: none; margin-top: 0.75rem; text-align: center; }
#activeFilterBanner.is-visible { display: block; }

#activeFilterBannerText {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff5ee; color: #da6f0d;
  border: 1px solid #da6f0d; border-radius: 9999px;
  padding: 0.35rem 1rem; font-size: 0.82rem; font-weight: 600;
}

.img-search-trigger-btn {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 1.1rem; padding: 0.25rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.img-search-trigger-btn:hover { color: #da6f0d; background-color: #fff5ee; }

.isp-camera-canvas  { display: none; }
.isp-result-conf-bar { width: 0%; }
.isp-hidden         { display: none !important; }

.isp-model-selector-wrap { margin-bottom: 16px; }
.isp-model-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.92rem; font-family: inherit; color: #001830;
  background: #f9fafb; cursor: pointer;
  transition: border-color 0.2s; outline: none; margin-top: 8px;
}
.isp-model-select:focus       { border-color: #da6f0d; background: #fff; }
.isp-loading-model-name       { font-size: 0.8rem; color: #da6f0d; margin-top: 4px; font-style: italic; text-align: center; }
.isp-result-model-used        { font-size: 0.75rem; color: #9ca3af; margin-top: 6px; text-align: center; }

#imageSearchPopup {
  display: none; position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000; justify-content: center; align-items: center;
  padding: 1rem; box-sizing: border-box;
}
#imageSearchPopup.show { display: flex; }

.isp-container {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 480px; max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  display: flex; flex-direction: column;
}
.isp-header {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; background: #fff; z-index: 2;
  border-radius: 20px 20px 0 0;
}
.isp-header-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #da6f0d 0%, #f59e3f 100%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.isp-title    { font-size: 1rem; font-weight: 700; color: #001830; margin: 0; line-height: 1.3; }
.isp-subtitle { font-size: 0.78rem; color: #9ca3af; margin: 0; }
.isp-close-btn {
  margin-left: auto; background: #f3f4f6; border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #6b7280; font-size: 1rem;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.isp-close-btn:hover { background: #fee2e2; color: #ef4444; }
.isp-body      { padding: 1.25rem 1.5rem; flex: 1; }
.isp-step      { display: none; }
.isp-step.active { display: block; }
.isp-step-label  { font-size: 0.88rem; color: #374151; font-weight: 500; margin-bottom: 1rem; text-align: center; }

.isp-options-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.isp-option-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1.25rem 1rem;
  border: 1.5px solid #e5e7eb; border-radius: 14px;
  background: #f9fafb; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}
.isp-option-btn:hover { border-color: #da6f0d; background: #fff5ee; transform: translateY(-2px); }
.isp-option-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #da6f0d 0%, #f59e3f 100%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
}
.isp-option-title { font-size: 0.88rem; font-weight: 600; color: #111827; }
.isp-option-desc  { font-size: 0.72rem; color: #9ca3af; line-height: 1.4; }

.isp-preview-wrap {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #f3f4f6; min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.isp-preview-img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.isp-preview-overlay {
  position: absolute; inset: 0; background: rgba(0,24,48,0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
}
.isp-analyzing-anim { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.isp-pulse-ring {
  position: absolute; width: 64px; height: 64px;
  border: 3px solid #da6f0d; border-radius: 50%;
  animation: ispPulse 1.2s ease-out infinite;
}
@keyframes ispPulse { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.isp-analyzing-icon { color: white; font-size: 1.5rem; z-index: 1; }
.isp-analyzing-text { color: white; font-size: 0.9rem; font-weight: 500; margin: 0; }
.isp-preview-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

.isp-camera-wrap {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #000; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.isp-camera-video { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.isp-camera-frame { position: absolute; inset: 0; pointer-events: none; }
.isp-camera-corner { position: absolute; width: 22px; height: 22px; border-color: #da6f0d; border-style: solid; }
.isp-camera-corner.tl { top: 14px; left: 14px;   border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.isp-camera-corner.tr { top: 14px; right: 14px;  border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.isp-camera-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.isp-camera-corner.br { bottom: 14px; right: 14px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
.isp-camera-hint {
  font-size: 0.78rem; color: #9ca3af; text-align: center;
  margin: 0.75rem 0 0;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.isp-camera-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem;
}
.isp-camera-spacer { width: 100px; }
.isp-btn-capture {
  width: 62px; height: 62px; border-radius: 50%; background: #da6f0d;
  border: 4px solid #fff; box-shadow: 0 0 0 3px #da6f0d;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s; flex-shrink: 0;
}
.isp-btn-capture:hover { background: #b85d0a; transform: scale(1.07); }
.isp-capture-inner     { width: 28px; height: 28px; border-radius: 50%; background: white; opacity: 0.85; }

.isp-result-box     { border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.isp-result-success { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.isp-result-fail    { background: #fef2f2; border: 1.5px solid #fecaca; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
.isp-result-img-wrap { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.isp-result-box.isp-result-success { display: flex; gap: 1rem; align-items: flex-start; }
.isp-result-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid #d1fae5; }
.isp-result-badge-wrap { position: absolute; bottom: -6px; right: -6px; }
.isp-result-badge { width: 24px; height: 24px; background: #22c55e; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.75rem; }
.isp-result-info  { flex: 1; }
.isp-result-label { font-size: 0.72rem; color: #16a34a; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.25rem; }
.isp-result-name  { font-size: 0.95rem; font-weight: 700; color: #111827; margin: 0 0 0.5rem; line-height: 1.3; }
.isp-result-confidence-wrap { display: flex; align-items: center; gap: 0.5rem; }
.isp-result-conf-label  { font-size: 0.7rem; color: #9ca3af; white-space: nowrap; }
.isp-result-conf-bar-bg { flex: 1; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.isp-result-conf-bar    { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 999px; transition: width 0.6s ease; }
.isp-result-conf-pct    { font-size: 0.75rem; font-weight: 700; color: #16a34a; white-space: nowrap; }
.isp-fail-icon-wrap     { font-size: 2.5rem; color: #f87171; margin-bottom: 0.75rem; }
.isp-fail-title         { font-size: 1rem; font-weight: 700; color: #991b1b; margin: 0 0 0.35rem; }
.isp-fail-desc          { font-size: 0.8rem; color: #b91c1c; line-height: 1.5; margin: 0; }
.isp-result-actions     { display: flex; gap: 0.75rem; }

.isp-loading-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; gap: 0.75rem;
}
.isp-loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(218,111,13,0.15); border-top: 4px solid #da6f0d;
  border-radius: 50%; animation: ispSpin 0.9s linear infinite;
}
@keyframes ispSpin { to { transform: rotate(360deg); } }
.isp-loading-text    { font-size: 0.9rem; font-weight: 500; color: #374151; margin: 0; text-align: center; }
.isp-loading-bar-bg  { width: 180px; height: 5px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 0.25rem; }
.isp-loading-bar     { height: 100%; background: linear-gradient(90deg, #da6f0d, #f59e3f); border-radius: 999px; animation: ispLoadBar 1.8s ease-in-out infinite; }
@keyframes ispLoadBar { 0% { width: 0%; margin-left: 0; } 50% { width: 70%; margin-left: 0; } 100% { width: 0%; margin-left: 100%; } }

.isp-btn-primary {
  flex: 1; padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #da6f0d 0%, #f59e3f 100%);
  color: white; border: none; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: filter 0.2s, transform 0.15s;
}
.isp-btn-primary:hover { filter: brightness(0.93); transform: translateY(-1px); }

.isp-btn-secondary {
  flex: 1; padding: 0.7rem 1rem; background: #f3f4f6; color: #374151;
  border: none; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: background 0.2s, transform 0.15s;
}
.isp-btn-secondary:hover { background: #e5e7eb; transform: translateY(-1px); }

.isp-footer {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-top: 1px solid #f3f4f6;
  font-size: 0.72rem; color: #9ca3af; background: #fafafa;
  border-radius: 0 0 20px 20px;
}
.isp-footer i { color: #22c55e; }