@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  padding-top: 80px !important;
  max-width: 100vw;
  position: relative;
}

/* Prevent horizontal overflow globally */
html {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px !important;
  }
}

/* Ensure header stays fixed - Override any other styles */
html, body {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.ab-site-header {
  background-color: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #e0e0e0;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.ab-site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.ab-header-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
  overflow: visible;
}

.ab-logo-hotline {
  display: flex;
  align-items: center;
}

.ab-menu-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ab-logo {
  display: flex;
  align-items: center;
  margin-right: 10px;
  width: 50px;
}

.ab-logo img {
  width: 100%;
}

.ab-vertical-line {
  width: 1px;
  height: 30px;
  background-color: #9aa6b2;
  margin: 0 10px;
  display: inline-block;
}

.ab-hotline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ab-hotline > .ab-title {
  font-size: 10px;
  color: rgb(154, 166, 178, 1);
  font-weight: 600;
  margin: 0 10px;
}

.ab-search-section {
  flex-grow: 1;
  margin: 0 30px;
  position: relative;
  overflow: visible;
}

.ab-search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.ab-search-input-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 5px;
  background-color: rgb(154, 166, 178, 0.05);
  position: relative;
  overflow: visible;
}

.ab-search-icon {
  color: #9aa6b2;
  margin-right: 8px;
  font-size: 14px;
}

.ab-search-input {
  border: none;
  outline: none;
  font-size: 14px;
  padding: 0;
  flex-grow: 1;
  background-color: transparent;
}

.ab-search-input::placeholder {
  color: #aaa;
  font-family: "Montserrat", sans-serif;
}

.ab-search-button {
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  transition: background-color 0.2s ease;
}

.ab-search-button:hover {
  background-color: #ffb300;
}

.ab-nav-icons-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.ab-main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  margin-right: 20px;
  position: relative;
  overflow: visible;
}

.ab-main-nav li {
  margin-right: 20px;
}

.ab-main-nav li:last-child {
  margin-right: 0;
}

.ab-main-nav a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: color 0.2s ease;
}

.ab-main-nav a:hover {
  color: #000;
}

.ab-main-nav .ab-dropdown i {
  margin-left: 5px;
  font-size: 10px;
  vertical-align: middle;
  pointer-events: auto;
  flex-shrink: 0;
}

.ab-main-nav li.ab-dropdown {
  position: relative;
  overflow: visible;
}

.ab-main-nav li.ab-dropdown > a {
  cursor: pointer;
  pointer-events: auto;
  width: 100%;
  display: block;
  user-select: none;
}

.ab-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
  z-index: 10000;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ab-dropdown-menu a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ab-dropdown-menu a:hover {
  background-color: #f0f0f0;
  color: #333;
}

.ab-main-nav li.ab-dropdown:hover > .ab-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ab-icons {
  display: flex;
  align-items: center;
}

.ab-icon {
  margin-left: 20px;
  color: #555;
  font-size: 18px;
  position: relative;
  overflow: visible;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.ab-icon i {
  margin-right: 5px;
  transition: all 0.3s ease;
}

/* World-Class Count Badge Animations */
.ab-icon-pulse {
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.ab-count-update {
  animation: countUpdate 0.6s ease;
  display: inline-block;
}

@keyframes countUpdate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ab-count-increase {
  animation: countIncrease 0.6s ease;
  color: #4caf50 !important;
}

@keyframes countIncrease {
  0% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(1.4) rotate(5deg);
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

.ab-count-decrease {
  animation: countDecrease 0.6s ease;
  color: #f44336 !important;
}

@keyframes countDecrease {
  0% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(0.8) rotate(-5deg);
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

.ab-user-info {
  font-size: 10px;
  line-height: 1.3;
  color: #333;
}

.ab-user-name {
  font-weight: bold;
}

.ab-user-email {
  color: #777;
}

.ab-user-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.ab-profile {
  cursor: pointer;
}

.ab-hamburger {
  display: none;
}

.ab-mobile-search-icon {
  display: none;
}

.ab-mobile-sidebar {
  position: fixed;
  top: 0;
  left: -310px;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.ab-mobile-sidebar.open {
  left: 0;
}

.ab-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.ab-sidebar-logo img {
  width: 50px;
  height: auto;
}

.ab-sidebar-close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

.ab-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.ab-sidebar-nav li {
  margin-bottom: 4px;
}

.ab-sidebar-nav li.ab-sidebar-dropdown {
  margin-bottom: 4px;
}

.ab-sidebar-nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  display: block;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.ab-sidebar-nav a:hover {
  color: #e9bb4f;
}

.ab-sidebar-dropdown {
  margin-bottom: 4px !important;
}

.ab-sidebar-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 8px 0;
  border-radius: 4px;
  margin-bottom: 0;
  width: 100%;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  user-select: none;
}

.ab-sidebar-dropdown a:hover {
  background-color: #f5f5f5;
  color: #333;
}

.ab-sidebar-dropdown a i {
  transition: transform 0.3s ease;
  pointer-events: auto;
  flex-shrink: 0;
  margin-left: auto;
}

.ab-sidebar-dropdown.active > a i {
  transform: rotate(180deg);
}

.ab-sidebar-dropdown-menu {
  list-style: none;
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.ab-sidebar-dropdown-menu.active {
  max-height: 500px;
  padding-top: 5px;
  padding-bottom: 3px;
  display: block;
}

.ab-sidebar-dropdown-menu li {
  margin-bottom: 2px;
}

.ab-sidebar-dropdown-menu a {
  font-size: 14px;
  padding: 4px 0;
}

/* Sidebar Wishlist, Cart, Profile Items */
.ab-sidebar-wishlist,
.ab-sidebar-cart,
.ab-sidebar-profile {
  margin-bottom: 4px;
}

.ab-sidebar-wishlist a,
.ab-sidebar-cart a,
.ab-sidebar-profile a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 4px;
  cursor: pointer;
}

.ab-sidebar-wishlist a:hover,
.ab-sidebar-cart a:hover,
.ab-sidebar-profile a:hover {
  color: #e9bb4f;
  background-color: #f5f5f5;
}

.ab-sidebar-wishlist a i,
.ab-sidebar-cart a i,
.ab-sidebar-profile a i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.ab-sidebar-count {
  margin-left: auto;
  font-weight: 600;
  color: #e9bb4f;
}

.ab-sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.ab-sidebar-bottom .ab-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-sidebar-bottom .ab-profile .ab-user-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ab-sidebar-bottom .ab-profile .ab-user-info .ab-user-name {
  text-align: left;
}

.ab-sidebar-bottom-close .ab-sidebar-close-button {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #e9bb4f;
  border-radius: 5px;
}

.ab-mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 100000;
  flex-direction: column;
  overflow: hidden;
}

.ab-mobile-search-overlay.ab-active,
.ab-mobile-search-overlay.open {
  display: flex;
}

.ab-overlay-header {
  display: flex;
  align-items: center;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  background-color: #fff;
  z-index: 1;
  min-height: 60px;
  border-bottom: 1px solid #eee;
}

#ab-close-search-overlay {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  margin-right: 15px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

#ab-close-search-overlay:hover {
  background-color: #f5f5f5;
}

.ab-overlay-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1em;
  padding: 12px 15px;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 8px;
  flex: 1;
}

.ab-overlay-search-input:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.ab-overlay-search-input::placeholder {
  color: #999;
}

.ab-overlay-header input::placeholder {
  color: rgb(154, 166, 178, 1);
}

.ab-search-results-dropdown {
  display: none;
  position: absolute;
  top: 115%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-mobile-search-overlay.ab-active .ab-search-results-dropdown.ab-mobile-dropdown,
.ab-mobile-search-overlay.open .ab-search-results-dropdown.ab-mobile-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-search-results-dropdown.ab-active {
  display: block;
}

.ab-search-results-dropdown.ab-mobile-dropdown.ab-active {
  display: block !important;
}

/* Custom Scrollbar for Search Results */
.ab-search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.ab-search-results-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ab-search-results-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.ab-search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.ab-search-results-dropdown.ab-mobile-dropdown {
  position: static !important;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #eee;
  box-shadow: none;
  border-radius: 0;
  max-height: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  background-color: #ffffff;
  min-height: 0;
  padding: 0;
  margin: 0;
  display: block !important;
  visibility: visible !important;
}

/* Show a subtle hint when mobile dropdown is empty */
.ab-mobile-search-overlay.ab-active .ab-search-results-dropdown.ab-mobile-dropdown:empty,
.ab-mobile-search-overlay.open .ab-search-results-dropdown.ab-mobile-dropdown:empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.ab-mobile-search-overlay.ab-active .ab-search-results-dropdown.ab-mobile-dropdown:empty::before,
.ab-mobile-search-overlay.open .ab-search-results-dropdown.ab-mobile-dropdown:empty::before {
  content: 'Type above to search for products...';
  color: #999;
  font-size: 16px;
  text-align: center;
  display: block;
}

.ab-search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  min-width: 0;
}

.ab-search-result-item:last-child {
  border-bottom: none;
}

.ab-search-result-item:hover {
  background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #FFD700;
  text-decoration: none;
  color: #333;
}

.ab-search-result-image {
  width: 65px;
  height: 65px;
  min-width: 65px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  position: relative;
}

.ab-search-result-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ab-search-result-item:hover .ab-search-result-image img {
  transform: scale(1.08);
}

/* Fallback for missing images */
.ab-search-result-image:empty::before {
  content: '📦';
  font-size: 20px;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ab-search-result-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ab-search-result-item:hover .ab-search-result-name {
  color: #000;
  font-weight: 600;
}

.ab-no-results-message {
  padding: 20px 15px;
  text-align: center;
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ab-no-results-message i {
  font-size: 18px;
  opacity: 0.6;
}

.ab-footer {
  padding: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.ab-footer .ab-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ab-footer .ab-row-1 .ab-logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.ab-footer .ab-row-1 .ab-logo img:hover {
  transform: scale(1.05);
}

.ab-footer .ab-row-1 .ab-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ab-footer .ab-row-1 .ab-social #ab-facebook,
.ab-footer .ab-row-1 .ab-social #ab-x {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ab-footer .ab-row-1 .ab-social #ab-facebook {
  background: linear-gradient(to right, #3b5998, #1877f2);
}

.ab-footer .ab-row-1 .ab-social #ab-x {
  background: linear-gradient(to right, #000, #333);
}

.ab-footer .ab-row-1 .ab-social #ab-facebook:hover,
.ab-footer .ab-row-1 .ab-social #ab-x:hover {
  transform: translateY(-3px);
}

.ab-footer .ab-row-1 .ab-social i {
  font-size: 24px;
  color: #fff;
}

.ab-footer .ab-row-2 {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.ab-footer .ab-row-2 .ab-address {
  flex: 1;
  max-width: 300px;
  color: #666;
  line-height: 1.6;
}

.ab-footer .ab-row-2 .ab-menu {
  display: flex;
  gap: 60px;
}

.ab-footer .ab-row-2 .ab-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ab-footer .ab-row-2 .ab-menu ul li {
  margin-bottom: 10px;
}

.ab-footer .ab-row-2 .ab-menu ul li a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.ab-footer .ab-row-2 .ab-menu ul li a:hover {
  color: #007bff;
  transform: translateX(5px);
}

.ab-footer .ab-row-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.ab-footer .ab-row-3 .ab-copyright p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.ab-footer .ab-row-3 .ab-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.ab-footer .ab-row-3 .ab-menu ul li a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.3s ease;
}

.ab-footer .ab-row-3 .ab-menu ul li a:hover {
  color: #000;
}

.ab-footer-promotion {
  padding: 20px;
}

.ab-footer-promotion img {
  width: 100%;
}

.ab-title h1 {
  margin: 5px 0 30px 0;
  font-size: 2rem;
  font-weight: 500;
  color: #333;
}

.ab-cart-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.ab-cart-sidebar.open {
  right: 0;
}

.ab-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.ab-cart-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.ab-cart-close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #111;
  cursor: pointer;
}

.ab-cart-items {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.ab-cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.ab-cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.ab-item-details {
  flex-grow: 1;
}

.ab-item-name {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

.ab-item-specs {
  font-size: 0.85rem;
  color: #777;
  margin-top: 3px;
}

.ab-item-price {
  margin-top: 5px;
}

.ab-price-remove {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.ab-remove-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.03);
  color: #888;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
}

.ab-remove-item:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  text-decoration: none;
  transform: scale(1.08);
}

.ab-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.ab-view-cart-button,
.ab-checkout-button {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.ab-view-cart-button {
  border: 1px solid rgba(0, 0, 0, 0.5) !important;
  color: #111;
  background-color: #fff;
}

.ab-view-cart-button:hover {
  background-color: #e0e0e0;
}

.ab-checkout-button {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.ab-checkout-button:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.ab-checkout-button a {
  color: #fff !important;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.ab-wishlist-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.ab-wishlist-sidebar.open {
  right: 0;
}

.ab-wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.ab-wishlist-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.ab-wishlist-close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #111;
  cursor: pointer;
}

.ab-wishlist-items {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.ab-wishlist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.ab-wishlist-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.ab-wishlist-item .ab-item-details {
  flex-grow: 1;
}

.ab-wishlist-item .ab-item-name {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

.ab-wishlist-item .ab-item-specs {
  font-size: 0.85rem;
  color: #777;
  margin-top: 3px;
}

.ab-wishlist-item .ab-price-remove {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.ab-wishlist-item .ab-item-price {
  margin-top: 5px;
  font-weight: 600;
  color: #333;
}

.ab-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
  cursor: pointer;
}

.ab-sidebar-overlay.active {
  display: block;
}

@media (max-width: 1266px) {
  .ab-vertical-line,
  .ab-hotline {
    display: none;
  }

  .ab-logo-hotline {
    flex-direction: column;
  }
}

@media screen and (max-width: 1078px) {
  .ab-main-nav,
  .ab-vertical-line,
  .ab-hotline,
  .ab-user-info {
    display: none;
  }

  /* Hide search section on mobile */
  .ab-search-section {
    display: none !important;
  }

  .ab-hamburger {
    display: flex;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
  }

  /* Show mobile search icon */
  .ab-mobile-search-icon {
    display: flex !important;
  }

  /* Hide mobile search box */
  .ab-mobile-search-box {
    display: none !important;
  }

  .ab-header-container {
    justify-content: space-between;
    padding: 10px 15px;
    gap: 10px;
  }

  .ab-logo-hotline {
    gap: 10px;
  }

  .ab-icons {
    gap: 15px;
    position: relative;
  }

  .ab-icon {
    margin-left: 10px;
    font-size: 18px;
  }

  /* Hide wishlist, cart, and profile icons on mobile in header */
  .ab-wishlist-icon,
  .ab-user-icon {
    display: none !important;
  }

  .ab-cart-icon {
    display: flex !important;
  }

  /* Adjust search form for mobile */
  .ab-search-form {
    max-width: 100%;
    margin: 0;
  }

  .ab-search-input-wrapper {
    width: 100%;
  }
}

/* Hide mobile search box and icon on all screens */
.ab-mobile-search-box {
  display: none !important;
}

.ab-mobile-search-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .ab-footer {
    padding: 40px;
  }

  .ab-footer .ab-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ab-footer .ab-row-1 .ab-social {
    justify-content: flex-start;
    width: 100%;
  }

  .ab-footer .ab-row-2 {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    padding-bottom: 30px;
  }

  .ab-footer .ab-row-2 .ab-address {
    max-width: 100%;
    text-align: left;
  }

  .ab-footer .ab-row-2 .ab-menu {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }

  .ab-footer .ab-row-2 .ab-menu #ab-column-1,
  .ab-footer .ab-row-2 .ab-menu #ab-column-2 {
    width: 48%;
    text-align: left;
  }

  .ab-footer .ab-row-2 .ab-menu ul {
    width: 100%;
  }

  .ab-footer .ab-row-3 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
    margin-top: 20px;
  }

  .ab-footer .ab-row-3 .ab-copyright {
    width: 100%;
    text-align: left;
  }

  .ab-footer .ab-row-3 .ab-menu ul {
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .ab-hotline {
    display: none;
  }

  /* Ensure mobile search icon is always visible on mobile */
  .ab-mobile-search-icon {
    display: flex !important;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
  }

  .ab-header-container {
    padding: 8px 10px;
  }

  .ab-logo {
    width: 40px;
  }

  .ab-icons {
    gap: 10px;
  }

  .ab-icon {
    margin-left: 8px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .ab-footer {
    padding: 20px;
  }

  .ab-sidebar-logo img {
    width: 50px;
  }

  .ab-footer .ab-row-1 .ab-logo img {
    width: 50px;
    height: 45px;
    border-radius: 50%;
  }

  .ab-footer .ab-row-1 .ab-social #ab-facebook,
  .ab-footer .ab-row-1 .ab-social #ab-x {
    width: 35px;
    height: 35px;
  }

  .ab-footer .ab-row-1 .ab-social i {
    font-size: 20px;
  }

  .ab-footer .ab-row-2 {
    margin: 20px 0;
  }

  .ab-footer .ab-row-2 .ab-address p {
    font-size: 14px;
  }

  .ab-footer .ab-row-2 .ab-menu {
    flex-direction: row;
    gap: 20px;
  }

  .ab-footer .ab-row-2 .ab-menu #ab-column-1,
  .ab-footer .ab-row-2 .ab-menu #ab-column-2 {
    width: 100%;
  }

  .ab-footer .ab-row-2 .ab-menu ul li a,
  .ab-footer .ab-row-3 .ab-copyright p,
  .ab-footer .ab-row-3 .ab-menu ul li a {
    font-size: 12px;
  }

  .ab-cart-sidebar,
  .ab-wishlist-sidebar {
    width: 100%;
    right: -100%;
  }
}
.ab-user-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ab-user-dropdown-menu {
  display: none;
  position: absolute;
  top: 30px;
  left: 20px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
  z-index: 1000;
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ab-user-icon.active .ab-user-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.ab-dropdown.active .ab-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ab-dropdown-item {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ab-dropdown-item:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

.ab-user-icon .ab-user-info {
  margin-left: 0;
}

@media (max-width: 1078px) {
  .ab-user-icon {
    position: relative;
    align-items: center;
    font-size: 20px;
  }

  .ab-user-icon .ab-user-info {
    display: none;
  }

  .ab-user-icon.active .ab-user-dropdown-menu {
    top: calc(100% + 5px);
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(0);
  }
}
