* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
  list-style: none;
}

body {
  background-color: #242424 !important;
  color: #fff;
}

/* ---------------- HEADER -------------- */

.home-back {
  color: #888;
}

.home-back:hover {
  color: #d4af37;
}

.user-title {
  text-transform: capitalize;
  color: #ddd;
}

.cart-container {
  position: relative;
}

.cart-container #cart .cart-icon {
  font-size: 22px;
  transition: all 0.3s ease;
  color: #ddd;
}

.cart-container:hover #cart .cart-icon {
  transform: scale(1.5);
  color: #d4af37;
}

.cart-container .cart-state {
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: absolute;
  right: -3px;
  top: -3px;
  overflow: hidden;
  background-color: red;
  color: #eee;
  transition: all 0.5s ease;
}

.cart-container:hover .cart-state {
  transform: translateY(-3px);
}

.cart-container #cart-group {
  max-height: 400px;
  overflow: auto;
}

.cart-container #cart-group::-webkit-scrollbar {
  position: absolute !important;
  right: 0;
  width: 3px;
}

.cart-container #cart-group::-webkit-scrollbar-track {
  background: #777;
  border-radius: 10px;
}

.cart-container #cart-group::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
  transition: 0.3s;
}

.cart-container nav {
  background-color: #555;
}

.cart-container #cart-group .dropdown-item {
  width: 200px !important;
  background-color: #bbb !important;
  border-radius: 10px !important;
}

.cart-container #cart-group .dropdown-item:active,
.cart-container #cart-group .dropdown-item:focus,
.cart-container #cart-group .dropdown-item:hover {
  color: inherit !important;
}

.cart-container #cart-group .dropdown-item .product-control {
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  background-color: #ccc !important;
  color: #333;
}

.cart-container #cart-group .dropdown-item .product-control:hover {
  background-color: #999 !important;
}

.cart-container #cart-group .btn-display-cart-products {
  background-color: #bbb;
  text-align: center;
  margin-top: 5px;
  color: #222;
  padding: 2px 0;
  border-radius: 999px;
  font-size: 15px;
}

.cart-container #cart-group .btn-display-cart-products:hover {
  background-color: #aaa !important;
}

/* ---------------- Body -------------- */

input,
select {
  background-color: #2f2f2f !important;
  border: 1px solid #555 !important;
  color: #ccc !important;
}

input::placeholder {
  color: #ccc !important;
}

input:focus {
  box-shadow: 0 0 10px #d4af37 !important;
}

.product-card {
  background-color: #2f2f2f !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 6px #d4af37;
}

.product-card img {
  height: 200px !important;
  transition: transform 0.4s ease;
  will-change: transform;
}

.product-card:hover img {
  transform: scale(1.085);
}

.product-card .card-title {
  font-size: 18px !important;
  font-weight: 600;
  margin-bottom: 8px;
  color: #eee;
}

.product-card .price {
  font-size: 15px;
  font-weight: 500;
  color: #d4af37;
  margin-bottom: 4px;
}

.product-card .category {
  font-size: 14px;
  color: #bbb;
}

.product-card .card-footer {
  background: #3a3a3a;
  border-top: 1px solid #555;
  padding: 12px 18px;
  color: #ddd;
}

.product-card i {
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
  will-change: transform;
}

.product-card i:hover {
  transform: scale(1.2) !important;
}

/* ---------------- Products Page -------------- */

#products .favorite-title {
  width: fit-content;
  color: #ccc;
  position: relative;
  margin: 0 auto 33px;
}

#products .favorite-title::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -10px;
  left: 0;
  background-color: #d4af37;
  transition: all 0.2s ease;
}

#products .favorite-title:hover::before {
  left: -15%;
  width: 130%;
}

#products .product-card:hover img {
  transform: scale(1.17);
}

#products .product-card .product-control {
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 3px #d4af37;
  color: #eee;
}

#products .product-card .product-control:hover {
  background-color: #555;
}

#products .cart-summary {
  margin-top: 40px !important;
  padding: 25px 45px;
  background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: 0.3s ease;
}

#products .cart-summary:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 10px rgba(212, 175, 55, 0.15);
}

#products .cart-summary span {
  display: block;
  width: 100%;
  font-weight: bold;
  font-size: 18px;
  color: #bbb;
  letter-spacing: 1px;
  margin-right: 10px;
}

#products .cart-summary h2 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

#products .divider {
  border-top: 1px solid #aaa;
  margin: 48px 0 35px !important;
}

#favoritesgroup {
  position: relative;
  padding: 16px 4px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 15px;
}

#favoritesgroup .favorite-card {
  width: 250px;
  flex: 0 0 auto;
}

#favoritesgroup::-webkit-scrollbar {
  height: 5px !important;
}

#favoritesgroup::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}

#favoritesgroup::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 10px;
}

#favoritesgroup::-webkit-scrollbar-thumb:hover {
  height: 7px !important;
  background: rgba(212, 175, 55, 0.65);
}

/* Empty Favorite Item */
#favoritesgroup .default-favorite {
  width: 60%;
  border-radius: 12px;
  margin: 8px;
  padding: 20px 15px !important;
  color: #aaa !important;
  transition: 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}

#favoritesgroup .default-favorite i {
  color: #d4af37;
  font-size: 28px;
  opacity: 0.85;
  transition: 0.3s;
}

#favoritesgroup .default-favorite p {
  color: #ddd;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

#favoritesgroup .default-favorite small {
  font-size: 12px;
  color: #999;
}

#favoritesgroup .default-favorite:hover {
  background: linear-gradient(145deg, #222, #2a2a2a);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

/* ---------------- Footer -------------- */

.site-footer {
  background-color: #2f2f2f !important;
  color: #ccc;
}

.footer-title {
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d4af37;
}

.footer-social a {
  color: #aaa;
  font-size: 20px;
  transition:
    color 0.3s,
    transform 0.3s;
}

.footer-social a:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
}
