
html, body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

html[data-theme-resolved="dark"] body {
  background-color: #1a202c; /* Dark background for the body */
  color: #e2e8f0; /* Light text color for the body */
}

html[data-theme-resolved="dark"] .global-container .main-content .fav-section-header h2 {
  color: #edf2f7; /* Light color for section headers */
}

html[data-theme-resolved="dark"] .fav-count-badge {
  background: #2d3748; /* Darker background for badges */
  color: #cbd5e1; /* Lighter text for badges */
}

html[data-theme-resolved="dark"] .fav-country-indicator {
  background: #2d3748; /* Darker background for country indicator */
  color: #da6f0d; /* Orange text color */
  border-color: #4a5568; /* Darker border for country indicator */
}

/* Dark mode for filter buttons in nav-secondary */
html[data-theme-resolved="dark"] .nav-secondary {
  background-color: #2d3748; /* Dark background for secondary nav */
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

html[data-theme-resolved="dark"] .nav-secondary a:not(.active) {
  color: #cbd5e1 !important; /* Lighter text for inactive links */
}

html[data-theme-resolved="dark"] .nav-secondary .hamburger-menu-btn {
  color: #cbd5e1; /* Lighter color for hamburger button */
}

html[data-theme-resolved="dark"] .nav-secondary .hamburger-menu-btn:hover {
  color: #da6f0d; /* Orange on hover */
}

/* Dark mode for filter type buttons */
html[data-theme-resolved="dark"] .fav-type-filter {
  border: 1px solid #4a5568; /* Darker border */
  background: #2d3748; /* Darker background */
  color: #cbd5e1; /* Lighter text */
}

html[data-theme-resolved="dark"] .fav-type-filter:hover,
html[data-theme-resolved="dark"] .fav-type-filter.active {
  background: #4a5568; /* Darker background on hover/active */
  border-color: #da6f0d; /* Orange border on hover/active */
  color: #da6f0d; /* Orange text on hover/active */
}

/* Dark mode for lateral sidebars */
html[data-theme-resolved="dark"] .sidebar {
  background-color: #2d3748; /* Dark background for sidebars */
}

html[data-theme-resolved="dark"] .sidebar.color-5 {
  background-color: #da6f0d; /* Keep orange for color-5 sidebar */
}

/* Dark mode for card backgrounds and borders */
html[data-theme-resolved="dark"] .fav-item-card {
  background-color: #2d3748; /* Dark background for fav item cards */
  border: 1px solid #4a5568; /* Darker border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

html[data-theme-resolved="dark"] .fav-item-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

html[data-theme-resolved="dark"] .fav-item-card h3 {
  color: #e2e8f0; /* Light text for card titles */
}

html[data-theme-resolved="dark"] .fav-item-card .location-info,
html[data-theme-resolved="dark"] .fav-item-card .vendor-info,
html[data-theme-resolved="dark"] .fav-item-card .qty-info {
  color: #a0aec0; /* Lighter gray for info text */
}

html[data-theme-resolved="dark"] .fav-item-card .original-price {
  color: #718096; /* Consistent original price color */
}

/* Dark mode for product/service/abonnement cards (if they appear in favoris) */
html[data-theme-resolved="dark"] .fav-grid .category-product-card,
html[data-theme-resolved="dark"] .fav-grid .service-card-home,
html[data-theme-resolved="dark"] .fav-grid .game-card-home,
html[data-theme-resolved="dark"] .fav-grid .abonnement-card {
  background-color: #2d3748; /* Dark background for various cards */
  border: 2px solid #4a5568; /* Darker border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

html[data-theme-resolved="dark"] .fav-grid .category-product-card:hover,
html[data-theme-resolved="dark"] .fav-grid .service-card-home:hover,
html[data-theme-resolved="dark"] .fav-grid .game-card-home:hover,
html[data-theme-resolved="dark"] .fav-grid .abonnement-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .15);
  border-color: #da6f0d; /* Orange border on hover */
}

html[data-theme-resolved="dark"] .fav-grid .category-product-card .p-3,
html[data-theme-resolved="dark"] .fav-grid .service-card-home .p-3,
html[data-theme-resolved="dark"] .fav-grid .game-card-home .p-3,
html[data-theme-resolved="dark"] .fav-grid .abonnement-card .card-body {
  color: #e2e8f0; /* Light text for card body */
}

html[data-theme-resolved="dark"] .fav-grid .location-info,
html[data-theme-resolved="dark"] .fav-grid .qty-min-info {
  color: #a0aec0; /* Lighter gray for info text */
}

html[data-theme-resolved="dark"] .fav-grid .abonnement-card .plan-name {
  color: #e2e8f0; /* Light text for plan name */
}

html[data-theme-resolved="dark"] .fav-grid .abonnement-card .description {
  color: #a0aec0; /* Lighter gray for description */
}

html[data-theme-resolved="dark"] .fav-grid .abonnement-card .feature-tag {
  color: #cbd5e1; /* Lighter text for feature tags */
  background: #4a5568; /* Darker background for feature tags */
  border: 1px solid #2d3748; /* Darker border */
}

html[data-theme-resolved="dark"] .fav-grid .abonnement-card .price-section {
  border-top: 1px solid #4a5568; /* Darker border for price section */
}

html[data-theme-resolved="dark"] .empty-state h3 {
  color: #e2e8f0; /* Light text for empty state title */
}

html[data-theme-resolved="dark"] .empty-state p {
  color: #a0aec0; /* Lighter gray for empty state paragraph */
}

html[data-theme-resolved="dark"] .empty-state-icon-wrap {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%); /* Darker gradient for empty state icon */
}

html[data-theme-resolved="dark"] .empty-state-icon-wrap i {
  color: #da6f0d; /* Keep orange icon color */
}

/* Dark mode for footer */
html[data-theme-resolved="dark"] footer {
  background-color: #1a202c; /* Dark background for footer */
  color: #a0aec0; /* Lighter text for footer */
}

html[data-theme-resolved="dark"] footer .footer-panel h3 {
  color: #e2e8f0; /* Light text for footer headings */
}

html[data-theme-resolved="dark"] footer a {
  color: #cbd5e1; /* Lighter links in footer */
}

html[data-theme-resolved="dark"] footer a:hover {
  color: #da6f0d; /* Orange on hover */
}

html[data-theme-resolved="dark"] .desktop-nav-link {
  color: #e2e8f0; /* Lighter text for desktop nav links */
}

html[data-theme-resolved="dark"] .desktop-nav-link:hover {
  background-color: #4a5568; /* Darker background on hover */
  color: #da6f0d; /* Orange on hover */
}

html[data-theme-resolved="dark"] .desktop-nav-list .dropdown-menu {
  background-color: #2d3748; /* Darker dropdown menu background */
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

html[data-theme-resolved="dark"] .desktop-nav-list .dropdown-item {
  color: #e2e8f0; /* Lighter text for dropdown items */
}

html[data-theme-resolved="dark"] .desktop-nav-list .dropdown-item:hover {
  background-color: #4a5568; /* Darker background on hover */
  color: #da6f0d; /* Orange on hover */
}

html[data-theme-resolved="dark"] .mobile-menu {
  background-color: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html[data-theme-resolved="dark"] .mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

html[data-theme-resolved="dark"] .mobile-menu a {
  color: white;
}

html[data-theme-resolved="dark"] .mobile-menu a:hover {
  background-color: rgba(255, 255, 255, .1);
}

html[data-theme-resolved="dark"] .mobile-menu a.menu-active {
  color: #da6f0d !important;
}

html[data-theme-resolved="dark"] .mobile-menu a.menu-active i {
  color: #da6f0d !important;
}

html[data-theme-resolved="dark"] .mobile-menu-section-title {
  color: #9ca3af; /* Lighter gray for section titles */
}

html[data-theme-resolved="dark"] .mobile-menu-divider {
  background-color: rgba(255, 255, 255, .1);
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.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);
}

.hidden {
  display: none !important;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f1ece6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 120px;
  height: 120px;
  background-image: url('/assets/images/logo%20wafricastore.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.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: .8; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  -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 .3s ease, visibility .3s ease, transform .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, .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 .2s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, .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, .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: .9rem;
  font-weight: 500;
  margin: .2rem 0 0 0;
  line-height: 1.3;
  display: none;
}

.user-profile-section .user-fullname.is-visible {
  display: block;
}

.user-profile-section .user-id {
  background-color: #da6f0d;
  color: white;
  padding: .15rem .4rem;
  border-radius: .375rem;
  font-weight: 500;
  font-size: .85rem;
}

.user-profile-section .user-detail {
  color: #cbd5e1;
  font-size: .85rem;
  margin: .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: .8rem;
  background-color: #da6f0d;
  color: white;
  border: none;
  border-radius: .5rem;
  font-weight: 500;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color .2s ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.user-profile-section .view-profile-btn:hover {
  background-color: #da6f0d;
}

.user-profile-section .logout-btn {
  display: block;
  width: 100%;
  padding: .8rem;
  background-color: #3f3f46;
  color: white;
  border: none;
  border-radius: .5rem;
  font-weight: 500;
  margin-top: .5rem;
  cursor: pointer;
  transition: background-color .2s ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.user-profile-section .logout-btn:hover {
  background-color: #52525b;
}

.user-profile-section .login-btn {
  display: block;
  width: 100%;
  padding: .8rem;
  background-color: #da6f0d;
  color: white;
  border: none;
  border-radius: .5rem;
  font-weight: 500;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color .2s ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.user-profile-section .login-btn:hover {
  background-color: #da6f0d;
}

.user-profile-section .not-connected-section p {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

#countryPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .7);
  z-index: 70;
  justify-content: center;
  align-items: center;
}

#countryPopup.show {
  display: flex;
}

#countryPopup .popup-container {
  background-color: white;
  border-radius: .5rem;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  padding: 2rem;
}

#countryPopup .close-btn {
  position: absolute;
  top: .5rem;
  right: .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 .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 .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: .75rem;
}

.country-option {
  display: block;
  padding: .75rem 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .375rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s ease, border-color .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: .75rem;
  display: block;
  color: #d1d5db;
}

#countryNoResults p {
  font-size: .875rem;
  color: #9ca3af;
  line-height: 1.5;
}

.nav-secondary {
  background-color: white;
  box-shadow: 0 1px 3px rgba(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: .25rem 0;
  justify-content: center;
  min-width: max-content;
  align-items: center;
  height: 100%;
}

.nav-secondary li {
  margin: 0 .5rem;
}

.nav-secondary a {
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: .375rem;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .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: .25rem;
  color: #001830;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: .375rem;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-secondary .hamburger-menu-btn:hover {
  color: #da6f0d;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.original-price {
  text-decoration: line-through;
  color: #718096;
  font-size: .875rem;
  margin-bottom: .25rem;
}

.promo-price {
  color: #e53e3e;
  font-weight: bold;
  font-size: 1.125rem;
}

.global-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 4rem);
  overflow: hidden;
}

.sidebar {
  width: 160px;
  height: 100%;
  flex-shrink: 0;
  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;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
  .main-content {
    max-width: calc(100% - 320px);
  }
}

.sidebar.color-5 {
  background-color: #da6f0d;
}

.fav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

.fav-section > footer {
  width: 100%;
  align-self: stretch;
}

@media (max-width: 767px) {
  .fav-section > footer {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

.fav-section-header {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.fav-section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.fav-count-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-size: .8rem;
  padding: .2rem .7rem;
  border-radius: 9999px;
  font-weight: 500;
}

.fav-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: 'Poppins', sans-serif;
}
.fav-clear-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.fav-clear-btn.hidden {
  display: none !important;
}

/* Dark mode */
html[data-theme-resolved="dark"] .fav-clear-btn {
  background: rgba(239, 68, 68, .15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .3);
}
html[data-theme-resolved="dark"] .fav-clear-btn:hover {
  background: #ef4444;
  color: #fff;
}

.fav-country-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff3e8;
  color: #da6f0d;
  border: 1px solid #fde8d0;
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .75rem;
  border-radius: 9999px;
}

.fav-country-indicator-hidden {
  display: none !important;
}

.fav-type-filters {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}

.fav-type-filter {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  border-radius: 9999px;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.fav-type-filter:hover,
.fav-type-filter.active {
  background: #fff3e8;
  border-color: #f6c28b;
  color: #da6f0d;
}

.fav-type-filter:hover {
  transform: translateY(-1px);
}

html[data-theme-resolved="dark"] .fav-country-indicator {
  background: rgba(218, 111, 13, 0.16);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.24);
}

html[data-theme-resolved="dark"] .fav-type-filter {
  background: #152338;
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme-resolved="dark"] .fav-type-filter:hover,
html[data-theme-resolved="dark"] .fav-type-filter.active {
  background: rgba(218, 111, 13, 0.16);
  border-color: rgba(251, 146, 60, 0.28);
  color: #fdba74;
}

html[data-theme-resolved="dark"] .fav-item-card {
  background: #0f1b2d;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.3);
}

html[data-theme-resolved="dark"] .fav-item-card .card-img-spacer {
  background: #152338;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 1200px;
}

@media (min-width: 480px) {
  .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .fav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .fav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.fav-item-card {
  width: 100%;
  background-color: white;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.fav-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.fav-item-card .card-img-spacer {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f3f4f6;
}

.fav-item-card .card-img-spacer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-item-card .card-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promo-badge-card {
  position: absolute;
  top: .4rem;
  right: .4rem;
  background: #e53e3e;
  color: white;
  padding: .1rem .4rem;
  border-radius: 9999px;
  font-size: .6rem;
  font-weight: 700;
  z-index: 10;
}

.fav-type-badge {
  position: absolute;
  right: .4rem;
  bottom: .4rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: calc(100% - .8rem);
  background: rgba(17, 24, 39, .82);
  color: #fff;
  padding: .18rem .45rem;
  border-radius: 9999px;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  z-index: 10;
}

.fav-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  font-size: 2.4rem;
}

.remove-btn {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background-color: rgba(255, 255, 255, .88);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  font-size: .9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  transition: background-color .2s ease, transform .1s ease;
  z-index: 20;
}

.remove-btn:hover {
  background-color: rgba(239, 68, 68, .12);
  transform: scale(1.1);
}

.fav-item-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  margin-bottom: .3rem;
  font-size: .82rem;
  line-height: 1.35;
}

.fav-item-card .price-normal {
  color: #da6f0d;
  font-weight: 700;
  font-size: .85rem;
  margin-top: .1rem;
}

.fav-item-card .original-price {
  font-size: .74rem;
}

.fav-item-card .promo-price {
  font-size: .85rem;
}

.fav-item-card .location-info {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  color: #6b7280;
  margin-top: .3rem;
}

.fav-item-card .location-info i {
  color: #da6f0d;
  font-size: .65rem;
  flex-shrink: 0;
}

.fav-item-card .location-info span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
}

.fav-item-card .vendor-info {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  color: #6b7280;
  margin-top: .2rem;
}

.fav-item-card .vendor-info i {
  color: #da6f0d;
  font-size: .65rem;
  flex-shrink: 0;
}

.fav-item-card .qty-info {
  font-size: .72rem;
  color: #6b7280;
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.fav-item-card .qty-info i {
  color: #da6f0d;
  font-size: .65rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .fav-item-card h3             { font-size: .88rem; }
  .fav-item-card .price-normal,
  .fav-item-card .promo-price   { font-size: .92rem; }
  .fav-item-card .original-price{ font-size: .78rem; }
  .fav-item-card .location-info,
  .fav-item-card .vendor-info,
  .fav-item-card .qty-info      { font-size: .76rem; }
}

@media (min-width: 768px) {
  .fav-item-card h3             { font-size: .92rem; }
  .fav-item-card .price-normal,
  .fav-item-card .promo-price   { font-size: .98rem; }
  .fav-item-card .original-price{ font-size: .82rem; }
  .fav-item-card .location-info,
  .fav-item-card .vendor-info,
  .fav-item-card .qty-info      { font-size: .78rem; }
}

/* Cartes de favoris alignees sur les cartes de index.html */
.fav-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 160px));
  justify-content: start;
  justify-items: start;
  align-items: stretch;
}

@media (min-width: 480px) {
  .fav-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
  }
}

@media (min-width: 768px) {
  .fav-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 210px));
  }
}

.fav-grid .category-product-card,
.fav-grid .service-card-home,
.fav-grid .game-card-home {
  display: flex;
  flex-direction: column;
  width: 160px;
  min-width: 160px;
  height: auto;
  min-height: 280px;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
  transition: box-shadow .25s ease, border-color .25s ease;
  flex-shrink: 0;
  position: relative !important;
}

@media (min-width: 480px) {
  .fav-grid .category-product-card,
  .fav-grid .service-card-home,
  .fav-grid .game-card-home {
    width: 180px;
    min-width: 180px;
    min-height: 300px;
  }
}

@media (min-width: 768px) {
  .fav-grid .category-product-card,
  .fav-grid .service-card-home,
  .fav-grid .game-card-home {
    width: 210px;
    min-width: 210px;
    min-height: 340px;
  }
}

.fav-grid .category-product-card:hover,
.fav-grid .service-card-home:hover,
.fav-grid .game-card-home:hover {
  box-shadow: 0 8px 20px rgba(218, 111, 13, .18), 0 2px 6px rgba(0, 0, 0, .08);
  border-color: #da6f0d;
}

.fav-grid .category-product-card .card-image-wrapper,
.fav-grid .service-card-home .card-image-wrapper,
.fav-grid .game-card-home .card-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background-color: #f3f4f6;
}

.fav-grid .category-product-card .card-image-wrapper img,
.fav-grid .service-card-home .card-image-wrapper img,
.fav-grid .game-card-home .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.fav-grid .category-product-card .p-3,
.fav-grid .service-card-home .p-3,
.fav-grid .game-card-home .p-3 {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: auto;
}

.fav-grid .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;
}

.fav-grid .card-inner-body {
  display: flex;
  flex-direction: column;
}

.fav-grid .location-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.fav-grid .location-info i,
.fav-grid .qty-min-info i {
  color: #da6f0d;
  font-size: 0.7rem;
}

.fav-grid .qty-min-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 0.2rem;
}

.fav-grid .game-card-home {
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  .fav-grid .game-card-home {
    width: 160px !important;
    min-width: 160px !important;
    height: 160px !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
}

.fav-grid .game-card-home .card-image-wrapper {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0.75rem;
}

.fav-grid .game-card-home .game-home-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fav-grid .game-card-home .game-home-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-grid .game-card-home .game-home-fallback {
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.fav-grid .game-card-home .game-home-open-icon {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  background: rgba(0, 24, 48, .72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.fav-grid .game-card-home:hover .game-home-open-icon,
.fav-grid .game-card-home:focus-visible .game-home-open-icon {
  opacity: 1;
  transform: translateY(0);
}

.fav-grid .abonnement-card-home {
  display: flex;
  flex-direction: column;
  width: 160px;
  min-width: 160px;
  height: auto;
  min-height: 260px;
  background-color: white;
  flex-shrink: 0;
  position: relative !important;
}

@media (min-width: 480px) {
  .fav-grid .abonnement-card-home {
    width: 180px;
    min-width: 180px;
    min-height: 260px;
  }
}

@media (min-width: 768px) {
  .fav-grid .abonnement-card-home {
    width: 210px;
    min-width: 210px;
    min-height: 260px;
  }
}

.fav-grid .abonnement-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
  border: 1.5px solid #f0f0f0;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.fav-grid .abonnement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10);
  border-color: #e5e7eb;
}

.fav-grid .abonnement-card .card-header {
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.fav-grid .abonnement-card .card-image {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fav-grid .abonnement-card .card-main-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}

.fav-grid .abonnement-card .badge {
  position: absolute;
  top: 10px;
  left: 2.8rem;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 6.6rem);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: #001830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-grid .abonnement-card .badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: #e53e3e;
  z-index: 10;
}

.fav-grid .abonnement-card .card-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.fav-grid .abonnement-card .service-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fav-grid .abonnement-card .plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-grid .abonnement-card .location-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.fav-grid .abonnement-card .description {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-grid .abonnement-card .features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.fav-grid .abonnement-card .feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.fav-grid .abonnement-card .feature-tag i {
  color: #da6f0d;
  font-size: 0.6rem;
}

.fav-grid .abonnement-card .price-section {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 100%;
}

.fav-grid .abonnement-card .original-price {
  font-size: 0.78rem;
  color: #c4c4c4;
  text-decoration: line-through;
  font-weight: 500;
  white-space: nowrap;
}

.fav-grid .abonnement-card .current-price {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.fav-grid .abonnement-card .price-period {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

.fav-grid .fav-index-card .remove-btn {
  top: .5rem;
  left: .5rem;
  z-index: 30;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6b7280;
  width: 100%;
  max-width: 420px;
}

.empty-state-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3e8 0%, #ffe0c0 100%);
  margin-bottom: 1rem;
  animation: pulseRing 2.2s ease-in-out infinite;
}

.empty-state-icon-wrap i {
  font-size: 2.2rem;
  color: #da6f0d;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(218, 111, 13, .35); }
  60%  { box-shadow: 0 0 0 16px rgba(218, 111, 13, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 111, 13, 0); }
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: #1f2937;
  font-weight: 600;
}

.empty-state p {
  font-size: .875rem;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.empty-state .btn-explorer {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  background: #da6f0d;
  color: white;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: background .2s ease;
  font-family: 'Poppins', sans-serif;
}

.empty-state .btn-explorer:hover {
  background: #da6f0d;
}

#lp-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: .65rem 1.25rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  gap: .5rem;
}

#lp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#lp-toast i {
  font-size: 1rem;
}

#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, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background-color .2s ease;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #da6f0d;
  transform: translateY(-2px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

footer {
  background-color: #001830;
  color: #9ca3af;
  z-index: 1;
}

footer p {
  font-size: .875rem;
  margin: 0;
}

.header-spacer {
  height: 7rem;
}

.fav-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Navigation reprise de commande.html */
#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: .85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  animation: marqueeSlide 12s linear infinite;
  letter-spacing: .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; }
}

header {
  top: 36px !important;
}

.nav-secondary {
  top: calc(36px + 4rem) !important;
}

.header-spacer {
  height: calc(36px + 7rem);
}

.header-cart-icon {
  background: none;
  border: none;
  padding: .5rem;
  margin: 0;
  cursor: pointer;
  color: #001830;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease;
  position: relative;
  text-decoration: none;
}

.header-cart-icon:hover {
  color: #da6f0d;
}

.header-cart-icon i {
  font-size: 1.5rem;
}

.header-icon-text {
  display: none;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-left: 6px;
  color: #001830;
}

@media (min-width: 640px) {
  .header-icon-text {
    display: inline;
  }
}

#cart-count-badge {
  top: -4px;
  right: -6px;
  transform: translate(10%, -10%);
}

.hamburger-btn .header-icon-text {
  display: none;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-left: 6px;
  color: #001830;
}

@media (min-width: 640px) {
  .hamburger-btn .header-icon-text {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.desktop-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.desktop-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: .25rem;
}

.desktop-nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  text-decoration: none;
  color: #001830;
  font-weight: 500;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  border-radius: .5rem;
  transition: all .2s ease;
}

.desktop-nav-link:hover {
  background-color: #fff5ee;
  color: #da6f0d;
}

.desktop-nav-link i {
  font-size: .95rem;
}

.desktop-nav-link .fa-chevron-down {
  font-size: .65rem;
  margin-left: .2rem;
  transition: transform .2s ease;
}

.desktop-nav-list .has-dropdown {
  position: relative;
}

.desktop-nav-list .has-dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  border-radius: .5rem;
  min-width: 180px;
  z-index: 100;
}

.desktop-nav-list .has-dropdown:hover > .dropdown-menu {
  display: block;
}

.desktop-nav-list .has-dropdown:hover > .desktop-nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

.desktop-nav-list .dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  text-decoration: none;
  color: #001830;
  font-size: .88rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: background-color .2s ease, color .2s ease;
}

.desktop-nav-list .dropdown-item:hover {
  background-color: #fff5ee;
  color: #da6f0d;
}

.desktop-nav-list .dropdown-item i {
  font-size: .9rem;
  width: 18px;
  text-align: center;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.mobile-menu {
  top: 0;
  padding-top: calc(36px + 64px);
  z-index: 49;
}

.mobile-menu ul {
  margin: 0;
}

.mobile-menu .has-dropdown {
  position: relative;
}

.mobile-menu .has-dropdown > a {
  justify-content: flex-start;
  cursor: pointer;
}

.mobile-menu .mobile-dropdown-arrow {
  font-size: .75rem;
  margin-left: auto;
  transition: transform .3s ease;
  display: inline-block;
}

.mobile-menu .has-dropdown.open > a .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-menu .has-dropdown > .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height .3s ease;
}

.mobile-menu .has-dropdown.open > .dropdown-menu {
  max-height: 500px;
  display: block;
}

.mobile-menu .has-dropdown > .dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 0;
  margin: 0;
}

.mobile-menu .has-dropdown > .dropdown-menu li a {
  padding-left: 2.5rem !important;
  font-size: 1rem !important;
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
  display: block !important;
}

.mobile-menu .inactive {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.mobile-menu .inactive span {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #ccc;
  font-size: 0.95rem;
  gap: 0.5rem;
}

.mobile-menu .badge-en-dev {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 2px;
  background: #f0f0f0;
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

.mobile-menu-version {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: .875rem;
  width: 100%;
}

@media (max-width: 480px) {
  #top-announcement-bar .announcement-text {
    font-size: .78rem;
  }

  header .max-w-7xl {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  header .h-16 {
    gap: .5rem !important;
    min-width: 0 !important;
  }

  header .h-16 > a:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: .5rem !important;
    margin-left: 0 !important;
  }

  header .h-16 > a:first-child img {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: .75rem !important;
    flex-shrink: 0 !important;
  }

  header .h-16 > a:first-child span {
    min-width: 0 !important;
    max-width: 9.5rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: .95rem !important;
  }

  header .h-16 > .flex.items-center:last-child {
    gap: .35rem !important;
    flex-shrink: 0 !important;
  }

  .header-cart-icon,
  .hamburger-btn,
  .header-profile-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  .header-cart-icon i,
  .hamburger-btn i,
  .header-profile-btn i {
    font-size: 1.15rem !important;
  }
}

/* ===== GAME CARD ===== */
.game-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(17, 24, 39, .98));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.15rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(218, 111, 13, .45);
  box-shadow: 0 20px 48px rgba(2, 6, 23, .45);
}

.game-card.game-card-target {
  border-color: #da6f0d;
  box-shadow: 0 0 0 3px rgba(218, 111, 13, .22), 0 22px 52px rgba(2, 6, 23, .5);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #172554, #0f172a 60%, #1e293b 100%);
}

.game-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, .08) 15%, rgba(2, 6, 23, .75) 100%);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.game-card-thumb-fallback {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  color: white;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-icon {
  width: 52px;
  height: 52px;
  background: #da6f0d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.game-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.game-card-title {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.game-card-desc {
  color: #94a3b8;
  font-size: .82rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}

.game-badge {
  font-size: .65rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-arcade {
  background: rgba(16, 185, 129, .2);
  color: #34d399;
}

.badge-puzzle {
  background: rgba(99, 102, 241, .2);
  color: #818cf8;
}

.badge-action {
  background: rgba(239, 68, 68, .2);
  color: #f87171;
}

.badge-classic {
  background: rgba(236, 72, 153, .2);
  color: #f472b6;
}

.badge-strategy {
  background: rgba(245, 158, 11, .2);
  color: #fbbf24;
}

.badge-default {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
}

.game-card-new-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 3;
  background: #da6f0d;
  color: white;
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.game-card-play {
  border: none;
  border-radius: .85rem;
  background: linear-gradient(135deg, #da6f0d, #da6f0d);
  color: white;
  font-size: .82rem;
  font-weight: 700;
  padding: .72rem .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(218, 111, 13, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.game-card-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(218, 111, 13, .28);
}

/* Override .fav-item-card generic styles when .game-card is present */
.game-card.fav-item-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(17, 24, 39, .98));
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
}

.game-card .remove-btn {
  top: .5rem;
  left: .5rem;
  z-index: 10;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .game-card {
    border-radius: .85rem;
  }

  .game-card:hover {
    transform: none;
  }

  .game-card-thumb-fallback {
    font-size: 2.15rem;
  }

  .play-overlay {
    display: none;
  }

  .game-card-body {
    padding: .68rem;
    gap: .48rem;
  }

  .game-card-title {
    font-size: .86rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .game-card-desc {
    font-size: .7rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .game-card-meta {
    gap: .35rem;
  }

  .game-badge {
    font-size: .55rem;
    padding: .12rem .42rem;
  }

  .game-card-new-badge {
    top: .4rem;
    right: .4rem;
    font-size: .52rem;
    padding: .12rem .36rem;
  }

  .game-card-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: .42rem;
    align-items: stretch;
  }

  .game-card-play {
    width: 100%;
    padding: .56rem .5rem;
    border-radius: .65rem;
    font-size: .74rem;
    gap: .32rem;
    box-shadow: 0 8px 18px rgba(218, 111, 13, .18);
  }
}

@media (max-width: 360px) {
  .game-card-body {
    padding: .58rem;
  }

  .game-card-title {
    font-size: .8rem;
  }

  .game-card-desc {
    font-size: .66rem;
  }

  .game-card-play {
    font-size: .7rem;
    padding: .52rem .42rem;
  }
}
