html, body { font-family: 'Poppins', sans-serif; overflow-x: hidden; }

#top-announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background-color: #da6f0d;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#top-announcement-bar .announcement-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  animation: marqueeSlide 12s linear infinite;
  letter-spacing: 0.03em;
}
@keyframes marqueeSlide {
  0%   { transform: translateX(60%); opacity: 0; }
  8%   { opacity: 1; }
  45%  { transform: translateX(0%); }
  55%  { transform: translateX(0%); }
  92%  { opacity: 1; }
  100% { transform: translateX(-60%); opacity: 0; }
}
@media (max-width: 480px) {
  #top-announcement-bar .announcement-text { font-size: 0.78rem; }
}

header { top: 36px !important; }
.nav-secondary { top: calc(36px + 4rem) !important; }
#category-nav { top: calc(36px + 4rem + 3rem) !important; }
#hero-spacer { height: calc(36px + 7rem) !important; }
#hero-spacer.with-category-nav { height: calc(36px + 10.5rem) !important; }
@media (max-width: 639px) {
  #hero-spacer { height: calc(36px + 7rem) !important; }
  #hero-spacer.with-category-nav { height: calc(36px + 10.5rem) !important; }
}

.product-card {
  transition: box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 8px 20px rgba(218,111,13,.18), 0 2px 6px rgba(0,0,0,.08);
  border-color: #da6f0d !important;
}

.suggestion-senegal-card,
.trending-senegal-card,
.promo-products-senegal-card,
.category-product-card {
  display: inline-block;
  width: 210px;
  height: auto;
  min-height: 340px;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  margin-right: 0.75rem;
  vertical-align: top;
  flex-shrink: 0;
  position: relative !important;
}
.suggestion-senegal-card:last-child,
.trending-senegal-card:last-child,
.promo-products-senegal-card:last-child,
.category-product-card:last-child { margin-right: 0; }
.suggestion-senegal-card:hover,
.trending-senegal-card:hover,
.promo-products-senegal-card:hover,
.category-product-card:hover {
  box-shadow: 0 8px 20px rgba(218,111,13,.18), 0 2px 6px rgba(0,0,0,.08);
  border-color: #da6f0d;
}

.suggestion-senegal-card .card-image-wrapper,
.trending-senegal-card .card-image-wrapper,
.promo-products-senegal-card .card-image-wrapper,
.category-product-card .card-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background-color: #f3f4f6;
}
.suggestion-senegal-card .card-image-wrapper img,
.trending-senegal-card .card-image-wrapper img,
.promo-products-senegal-card .card-image-wrapper img,
.category-product-card .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.suggestion-senegal-card .p-3,
.trending-senegal-card .p-3,
.promo-products-senegal-card .p-3,
.category-product-card .p-3 {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: auto;
}

.badge { background-color:#001830; color:#fff; padding:.25rem .6rem; border-radius:9999px; font-size:.7rem; font-weight:600; position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10; }

.service-senegal-card .badge,
.suggestion-senegal-card .badge,
.trending-senegal-card .badge,
.promo-products-senegal-card .badge,
.category-product-card .badge {
  background-color: #dc2626;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}

.product-card .badge { display: none; }
.product-card.promo .badge { display: block; }

.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; }

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#newsletterPopup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 60;
  justify-content: center;
  align-items: center;
}
#newsletterPopup.show { display: flex; }
#newsletterPopup .popup-container {
  background-color: white;
  border-radius: 0.5rem;
  width: 90%; max-width: 500px; max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 2rem;
}
#newsletterPopup .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;
}
#newsletterPopup .close-btn:hover { background-color: #f3f4f6; color: #ef4444; }
#newsletterPopup .popup-header { text-align: center; margin-bottom: 1rem; }
#newsletterPopup .popup-header h2 { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 0.5rem; }
#newsletterPopup .popup-header p { font-size: 0.9rem; color: #6b7280; }
#newsletterPopup .popup-image-container {
  width: 100%; height: 150px; margin-bottom: 1.5rem;
  overflow: hidden; border-radius: 0.5rem;
  background-color: #f9fafb;
  display: flex; align-items: center; justify-content: center;
}
#newsletterPopup .popup-image-container img { width: 100%; height: 100%; object-fit: cover; }
#newsletterPopup .popup-form { width: 100%; }
#newsletterPopup .popup-form input[type="email"] {
  width: 100%; padding: 0.75rem;
  border: 1px solid #d1d5db; border-radius: 0.375rem;
  font-size: 1rem; margin-bottom: 0.75rem; box-sizing: border-box;
}
#newsletterPopup .popup-form button {
  width: 100%; padding: 0.75rem;
  background-color: #da6f0d; color: white; border: none;
  border-radius: 0.375rem; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: background-color 0.2s ease;
}
#newsletterPopup .popup-form button:hover { background-color: #b85d0a; }
#newsletterPopup .form-message { margin-top: 0.75rem; font-size: 0.875rem; text-align: center; }
#newsletterPopup .form-message.success { color: #10b981; }
#newsletterPopup .form-message.error { color: #ef4444; }

#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; }

#categoriesPopup {
  display: none; position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 65; justify-content: center; align-items: center;
}
#categoriesPopup.show { display: flex; }
#categoriesPopup .popup-container {
  background-color: white; border-radius: 0.75rem;
  width: 90%; max-width: 550px; max-height: 85vh;
  overflow: hidden; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
#categoriesPopup .popup-header-fixed {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f3f4f6; flex-shrink: 0;
}
#categoriesPopup .popup-header-fixed h2 {
  font-size: 1.3rem; font-weight: 700; color: #1f2937;
  margin: 0 0 1rem 0; text-align: center;
}
#categoriesPopup .close-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  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;
}
#categoriesPopup .close-btn:hover { background-color: #f3f4f6; color: #ef4444; }
#categoriesPopup .cat-search-wrap { position: relative; }
#categoriesPopup .cat-search-wrap i {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: #9ca3af; font-size: 0.9rem; pointer-events: none;
}
#categoriesPopup .cat-search-input {
  width: 100%; padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
  font-size: 0.9rem; font-family: 'Poppins', sans-serif;
  box-sizing: border-box; transition: border-color 0.2s ease;
}
#categoriesPopup .cat-search-input:focus {
  outline: none; border-color: #da6f0d;
  box-shadow: 0 0 0 3px rgba(218,111,13,0.2);
}
#categoriesPopup .popup-body { overflow-y: auto; padding: 1rem 1.5rem 1.5rem; flex: 1; }
#categoriesPopup .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 480px) { #categoriesPopup .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-popup-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem 0.5rem;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 0.75rem; cursor: pointer; text-decoration: none;
  color: #1f2937; font-size: 0.8rem; font-weight: 500; text-align: center;
  transition: all 0.2s ease;
}
.cat-popup-item:hover {
  background: #fff5ee; border-color: #da6f0d; color: #da6f0d;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(218,111,13,0.15);
}
.cat-popup-item i { font-size: 1.5rem; color: #da6f0d; }
.cat-popup-item:hover i { color: #b85d0a; }
.cat-popup-item.hidden-cat { display: none; }
#catPopupNoResults { text-align: center; padding: 2rem 1rem; color: #9ca3af; display: none; }
#catPopupNoResults i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }

#hero-spacer { height: calc(36px + 7rem); transition: height 0.2s ease; }
#hero-spacer.with-category-nav { height: calc(36px + 10.5rem); }

#hero {
  position: relative; overflow: hidden; width: 100%;
  padding-top: 25.77%; background-color: #f1ece6;
}
@media (max-width: 639px) {
  #hero { padding-top: 0; height: 160px; }
  #hero-spacer { height: calc(36px + 7rem); }
  #hero-spacer.with-category-nav { height: calc(36px + 10.5rem); }
}
#hero .hero-content {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1rem; z-index: 10;
}
#hero .hero-text {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; z-index: 20;
}
#hero .hero-carousel-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;
}
#hero .hero-carousel { width: 100%; height: 100%; position: relative; }
#hero .carousel-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center center; opacity: 0; transition: opacity 0.5s ease-in-out;
}
#hero .carousel-image.active { opacity: 1; }

.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  background: rgba(255,255,255,0.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.5); color: white; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.hero-nav-btn.left  { left:  1rem; }
.hero-nav-btn.right { right: 1rem; }
.hero-nav-btn.show { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-nav-btn:hover {
  background: rgba(218,111,13,0.75); border-color: rgba(218,111,13,0.9);
  transform: translateY(-50%) scale(1.08);
}
@media (max-width: 639px) { .hero-nav-btn { display: none !important; } }

.search-section-wrapper { position: relative; z-index: 45; }
#search-placeholder { display: none; height: 0; }
#search-placeholder.active { display: block; }
.search-section {
  padding: 1rem 0; background-color: #f9fafb;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  position: relative; transition: box-shadow 0.3s ease; z-index: 45;
}
.search-section.is-sticky {
  position: fixed; left: 0; right: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: slideDownSearch 0.2s ease;
}
@keyframes slideDownSearch {
  from { transform: translateY(-10px); opacity: 0.7; }
  to   { transform: translateY(0);     opacity: 1; }
}
.search-container {
  max-width: 72rem; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
}

.search-input {
  flex: 1; padding: 0.75rem 3.2rem 0.75rem 1rem;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
  font-size: 1rem; font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s ease; width: 100%; min-width: 0;
  box-sizing: border-box;
}
.search-input:focus {
  outline: none; border-color: #da6f0d; box-shadow: 0 0 0 3px rgba(218,111,13,0.2);
}

.img-search-trigger-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.35rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 5;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.img-search-trigger-btn:hover {
  color: #da6f0d;
  background: rgba(218, 111, 13, 0.08);
  transform: translateY(-50%) scale(1.12);
}
.img-search-trigger-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.img-search-trigger-btn::after {
  content: "Recherche par image";
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #1f2937;
  color: white;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: 0.375rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.img-search-trigger-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

#noResultsMessage { display: none !important; }

#no-results-zone {
  display: none; padding: 3rem 1rem 2rem; text-align: center;
  background-color: #fff8f3; border-top: 1px solid #fde8d0; border-bottom: 1px solid #fde8d0;
}
#no-results-zone.show { display: block; animation: fadeInUp 0.4s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.no-results-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #fff3e8 0%, #ffe5c8 100%);
  box-shadow: 0 0 0 0 rgba(218,111,13,0.4);
  animation: pulseRing 2s ease-in-out infinite; margin-bottom: 1.25rem;
}
.no-results-icon-wrap i { font-size: 2.2rem; color: #da6f0d; animation: wobble 2s ease-in-out infinite; }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0   rgba(218,111,13,0.35); }
  60%  { box-shadow: 0 0 0 18px rgba(218,111,13,0);   }
  100% { box-shadow: 0 0 0 0   rgba(218,111,13,0);    }
}
@keyframes wobble {
  0%,100% { transform: rotate(0deg) scale(1);    }
  20%      { transform: rotate(-12deg) scale(1.1); }
  40%      { transform: rotate(10deg)  scale(1.05);}
  60%      { transform: rotate(-6deg)  scale(1.05);}
  80%      { transform: rotate(4deg)   scale(1);   }
}
.no-results-title { font-size: 1.2rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.no-results-subtitle { font-size: 0.9rem; color: #6b7280; max-width: 380px; margin: 0 auto 1.5rem; line-height: 1.6; }
.no-results-keyword {
  display: inline-block; background: #da6f0d; color: white;
  padding: 0.15rem 0.6rem; border-radius: 9999px; font-weight: 600; font-size: 0.85rem;
}
.no-results-clear-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.4rem;
  background: #da6f0d; color: white; border: none; border-radius: 0.5rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: background 0.2s ease, transform 0.1s ease;
}
.no-results-clear-btn:hover { background: #b85d0a; transform: scale(1.03); }

.no-country-products-zone {
  display: none; padding: 3rem 1rem 2.5rem; text-align: center;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
  border-top: 1px solid #fde8d0; border-bottom: 1px solid #fde8d0;
  margin: 1rem 0; border-radius: 1rem; animation: fadeInUp 0.45s ease both;
}
.no-country-products-zone.show { display: block; }
.no-country-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #fff3e8 0%, #ffe0c0 100%);
  box-shadow: 0 0 0 0 rgba(218,111,13,0.35);
  animation: pulseRing 2.2s ease-in-out infinite; margin-bottom: 1.25rem;
}
.no-country-icon-wrap i { font-size: 2.4rem; color: #da6f0d; }
.no-country-title { font-size: 1.15rem; font-weight: 700; color: #1f2937; margin-bottom: 0.4rem; }
.no-country-subtitle { font-size: 0.88rem; color: #6b7280; max-width: 360px; margin: 0 auto; line-height: 1.6; }

.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; }

.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; }

#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); } }
@keyframes spin { 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: calc(36px + 64px); 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, .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; }
.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 {
  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;
}
.user-profile-section .view-profile-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;
}
.user-profile-section .logout-btn:hover { background-color: #52525b; }
.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;
}
.user-profile-section .login-btn:hover { background-color: #c2630c; }
.user-profile-section .not-connected-section p { color: white; font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.4; }

.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; }
}

#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); }

.avantages-section {
  background-color: #f3f4f6;
  padding: 2.5rem 1rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.avantages-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .avantages-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .avantages-container { padding: 0 2rem; } }
.avantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .avantages-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 479px) {
  .avantages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.avantage-bloc {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: default;
}
.avantage-bloc:hover {
  box-shadow: 0 8px 24px rgba(218,111,13,0.14), 0 2px 6px rgba(0,0,0,0.07);
  border-color: #da6f0d;
  transform: translateY(-3px);
}
.avantage-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5ee 0%, #fde8cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 10px rgba(218,111,13,0.15);
}
.avantage-bloc:hover .avantage-icon-wrap {
  background: linear-gradient(135deg, #da6f0d 0%, #e8850a 100%);
  transform: scale(1.08);
}
.avantage-icon-wrap i {
  font-size: 1.6rem;
  color: #da6f0d;
  transition: color 0.25s ease;
}
.avantage-bloc:hover .avantage-icon-wrap i {
  color: #ffffff;
}
.avantage-titre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}
.avantage-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.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; }
.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; 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; }

.location-info { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: #4b5563; margin-top: 0.25rem; }
.location-info i { color: #da6f0d; font-size: 0.7rem; }
.seller-info { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: #4b5563; margin-top: 0.2rem; }
.seller-info i { color: #da6f0d; font-size: 0.7rem; }
.qty-min-info { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: #4b5563; margin-top: 0.2rem; }
.qty-min-info i { color: #da6f0d; font-size: 0.7rem; }
.loading-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.title-with-button { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.title-with-button h2 { margin: 0; flex-grow: 1; }
.title-with-button .btn-title {
  background-color: #da6f0d; color: white; border: 1px solid white; border-radius: 0.5rem;
  padding: 0.25rem 0.5rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; font-size: 0.875rem; font-weight: 500;
}
.title-with-button .btn-title:hover { background-color: #c2630c; transform: scale(1.05); }

.section-icon { color: #da6f0d; margin-right: 0.4rem; }
.cat-popup-icon { color: #da6f0d; margin-right: 0.4rem; }

.nav-secondary {
  background-color: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); z-index: 48;
  position: fixed; top: calc(36px + 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[href="index.html"] { color: #da6f0d !important; }
.nav-secondary a:not([href="index.html"]) { color: #001830 !important; }
.nav-secondary a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nav-secondary a.active { color: #da6f0d !important; }
.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; }

.section-to-hide { transition: opacity 0.3s ease, visibility 0.3s ease; }
.section-to-hide.hidden { opacity: 0; visibility: hidden; height: 0; margin: 0; padding: 0; overflow: hidden; }

.carousel-container { position: relative; overflow: hidden; padding: 0.5rem 0; cursor: grab; }
.carousel-container:active { cursor: grabbing; }
.carousel-inner { display: flex; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; }
.carousel-inner::-webkit-scrollbar { display: none; }
.carousel-wrapper { position: relative; display: inline-block; width: 100%; }
.carousel-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background-color: rgba(255,255,255,0.7); color: #1f2937; border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  padding: 0.5rem; cursor: pointer; align-items: center; justify-content: center;
  font-size: 1.25rem; border: 1px solid #ccc; width: 40px; height: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease; display: none;
}
@media (min-width: 768px) { .carousel-nav-btn { display: flex; } }
.carousel-nav-btn.left { left: 10px; }
.carousel-nav-btn.right { right: 10px; }
.carousel-nav-btn:hover { background-color: #f3f4f6; }

.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;
}
.hidden { display: none !important; }

#category-nav {
  display: none; background-color: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); z-index: 47;
  position: fixed; top: calc(36px + 4rem + 3rem); left: 0; right: 0;
  height: 3.5rem; white-space: nowrap; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none;
}
#category-nav::-webkit-scrollbar { display: none; }
#category-nav.show { display: block; }
#category-links {
  display: flex; list-style: none; margin: 0; padding: 0.25rem 0;
  justify-content: flex-start; min-width: max-content; align-items: center; height: 100%;
}
#category-links 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.5rem; color: #001830;
}
#category-links a:hover { color: #da6f0d; text-decoration: underline; }
#category-links a.active { color: #da6f0d; font-weight: 600; }

#openCatPopupBtn {
  display: inline-flex; align-items: center; gap: 0.4rem; background: #da6f0d; color: white;
  border: none; border-radius: 0.5rem; padding: 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: 'Poppins', sans-serif; flex-shrink: 0; margin-right: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease; white-space: nowrap;
}
#openCatPopupBtn:hover { background: #b85d0a; transform: scale(1.03); }

.card-inner-body { display: flex; flex-direction: column; }


#imageSearchPopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9800;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
#imageSearchPopup.show {
  display: flex;
  animation: ispFadeIn 0.25s ease both;
}
@keyframes ispFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.isp-container {
  background: #ffffff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: ispSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}
@keyframes ispSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.isp-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #fff9f5 0%, #fff5ee 100%);
  flex-shrink: 0;
  position: relative;
}
.isp-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #da6f0d, #e8850a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(218, 111, 13, 0.35);
}
.isp-header-icon i {
  font-size: 1.2rem;
  color: white;
}
.isp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}
.isp-subtitle {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0.15rem 0 0 0;
  line-height: 1.3;
}
.isp-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.isp-close-btn:hover {
  background: #fde8d0;
  color: #da6f0d;
  transform: rotate(90deg);
}

.isp-body {
  flex: 1;
  overflow-y: auto;
  -ms-overflow-style: none;
  padding: 1.5rem;
  position: relative;
}
.isp-body::-webkit-scrollbar { display: none; }

.isp-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fafafa;
  flex-shrink: 0;
}
.isp-footer i {
  font-size: 0.8rem;
  color: #22c55e;
  flex-shrink: 0;
}
.isp-footer span {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.4;
}

.isp-step {
  display: none;
  animation: ispStepIn 0.25s ease both;
}
.isp-step.active { display: block; }
@keyframes ispStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.isp-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin: 0 0 1.25rem 0;
}
.isp-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.isp-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Poppins', sans-serif;
}
.isp-option-btn:hover {
  border-color: #da6f0d;
  background: #fff9f5;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(218, 111, 13, 0.16);
}
.isp-option-btn:active {
  transform: translateY(0) scale(0.97);
}
.isp-option-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5ee, #fde8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, transform 0.22s ease;
  box-shadow: 0 2px 10px rgba(218, 111, 13, 0.15);
}
.isp-option-btn:hover .isp-option-icon-wrap {
  background: linear-gradient(135deg, #da6f0d, #e8850a);
  transform: scale(1.08);
}
.isp-option-icon-wrap i {
  font-size: 1.5rem;
  color: #da6f0d;
  transition: color 0.22s ease;
}
.isp-option-btn:hover .isp-option-icon-wrap i {
  color: white;
}
.isp-option-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.isp-option-desc {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.3;
}

.isp-preview-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}
.isp-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.isp-preview-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 5;
}
.isp-preview-overlay[style*="flex"] { display: flex !important; }
.isp-analyzing-anim {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.isp-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(218, 111, 13, 0.6);
  animation: ispPulseRing 1.4s ease-in-out infinite;
}
@keyframes ispPulseRing {
  0%   { transform: scale(0.85); opacity: 1; }
  50%  { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.85); opacity: 1; }
}
.isp-analyzing-icon {
  font-size: 1.8rem;
  color: white;
  animation: ispAnalyzePulse 1.4s ease-in-out infinite;
}
@keyframes ispAnalyzePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.isp-analyzing-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}
.isp-preview-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.isp-camera-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  margin-bottom: 0.75rem;
}
.isp-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.isp-camera-canvas { display: none; }
.isp-camera-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.isp-camera-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #da6f0d;
  border-style: solid;
  opacity: 0.85;
}
.isp-camera-corner.tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.isp-camera-corner.tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.isp-camera-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.isp-camera-corner.br { bottom: 12px; right: 12px; 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 0 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.isp-camera-hint i { color: #da6f0d; }
.isp-camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.isp-btn-capture {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 3px solid #da6f0d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  outline: none;
  box-shadow: 0 4px 16px rgba(218, 111, 13, 0.3);
  -webkit-tap-highlight-color: transparent;
}
.isp-btn-capture:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(218, 111, 13, 0.45);
}
.isp-btn-capture:active,
.isp-btn-capture.capturing {
  transform: scale(0.9);
}
.isp-capture-inner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #da6f0d, #e8850a);
  transition: transform 0.15s ease;
}
.isp-btn-capture:active .isp-capture-inner,
.isp-btn-capture.capturing .isp-capture-inner {
  transform: scale(0.88);
}

.isp-result-box {
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.isp-result-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.isp-result-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.isp-result-img {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid #bbf7d0;
}
.isp-result-badge-wrap {
  position: absolute;
  bottom: -6px;
  right: -6px;
}
.isp-result-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}
.isp-result-badge i {
  font-size: 0.65rem;
  color: white;
}
.isp-result-info { flex: 1; min-width: 0; }
.isp-result-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22c55e;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}
.isp-result-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  word-break: break-word;
}
.isp-result-confidence-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.isp-result-conf-label {
  font-size: 0.7rem;
  color: #6b7280;
  flex-shrink: 0;
}
.isp-result-conf-bar-bg {
  flex: 1;
  height: 6px;
  background: #d1fae5;
  border-radius: 9999px;
  overflow: hidden;
}
.isp-result-conf-bar {
  height: 100%;
  border-radius: 9999px;
  background: #22c55e;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.isp-result-conf-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
}

.isp-result-fail {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem 1.5rem;
}
.isp-fail-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5ee, #fde8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ispWiggle 0.5s ease 0.2s both;
}
@keyframes ispWiggle {
  0%   { transform: rotate(0deg);    }
  20%  { transform: rotate(-8deg);   }
  40%  { transform: rotate(8deg);    }
  60%  { transform: rotate(-5deg);   }
  80%  { transform: rotate(5deg);    }
  100% { transform: rotate(0deg);    }
}
.isp-fail-icon-wrap i {
  font-size: 2rem;
  color: #da6f0d;
}
.isp-fail-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0;
}
.isp-fail-desc {
  font-size: 0.82rem;
  color: #a16207;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.isp-result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.isp-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}
.isp-loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #fde8cc;
  border-top-color: #da6f0d;
  border-radius: 50%;
  animation: ispSpin 0.85s linear infinite;
}
@keyframes ispSpin {
  to { transform: rotate(360deg); }
}
.isp-loading-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin: 0;
}
.isp-loading-bar-bg {
  width: 200px;
  height: 6px;
  background: #fde8cc;
  border-radius: 9999px;
  overflow: hidden;
}
.isp-loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #da6f0d, #e8850a);
  border-radius: 9999px;
  transition: width 0.3s ease;
  width: 0%;
}

.isp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #da6f0d, #e8850a);
  color: white;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(218, 111, 13, 0.35);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.isp-btn-primary:hover {
  background: linear-gradient(135deg, #b85d0a, #da6f0d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(218, 111, 13, 0.45);
}
.isp-btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.isp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #f3f4f6;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.isp-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}
.isp-btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 480px) {
  .isp-container {
    border-radius: 1rem 1rem 0 0;
    max-height: 95vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
  #imageSearchPopup {
    align-items: flex-end;
    padding: 0;
  }
  @keyframes ispSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .isp-options-grid {
    gap: 0.75rem;
  }
  .isp-option-btn {
    padding: 1.25rem 0.75rem;
  }
  .isp-option-icon-wrap {
    width: 52px;
    height: 52px;
  }
  .isp-option-icon-wrap i {
    font-size: 1.3rem;
  }
  .isp-result-success {
    flex-direction: column;
    text-align: center;
  }
  .isp-result-info { width: 100%; }
  .isp-result-confidence-wrap { justify-content: center; }
}

