body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
}

.top-bar {
  background-color: #001f3f;
  color: #fff;
  font-size: 14px;
  padding: 5px 0;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
}

.top-bar i {
  margin-right: 5px;
}

.brand-logo {
  font-size: 24px;
  font-weight: bold;
  color: #001f3f;
}

.form-control::placeholder {
  font-size: 14px;
}

.icon-link {
  margin-left: 15px;
  color: #001f3f;
  font-size: 14px;
  text-decoration: none;
}

.login-btn {
  border: 1px solid #001f3f;
  padding: 6px 15px;
  border-radius: 5px;
  color: #001f3f;
  text-decoration: none;
}
.top-links{
  color: white;
}
.top-links:hover{
  color: rgb(206, 44, 44);
}
/* Ensure cart icon has relative position */
.cart-icon {
  position: relative;
  display: inline-block;
  color: #333;
  text-decoration: none;
}

/* Style and position the cart badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 50%;
  line-height: 1;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  z-index: 10;
  display: inline-block;
}

/* Make sure it's visible on all screen sizes */
@media (min-width: 992px) {
  .cart-badge {
    display: inline-block !important;
  }
}
@media (max-width: 576px) {
  .cart-badge {
    top: -7px;
    right: -10px;
    font-size: 10px;
    padding: 4px 4px;
  }

  .cart-icon {
    margin-right: 12px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-bar {
    font-size: 12px;
  }

  .icon-link {
    font-size: 13px;
  }

  .login-btn {
    padding: 5px 10px;
  }

  .search-box {
    width: 100%;
  }
}

.featured-products {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: #001F3F;
}

.section-header p {
  color: #555;
  margin-top: 10px;
  font-size: 16px;
}

.product-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.card-img img {
  width: 50%;
  height: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
}

.badge.green { background-color: #2ecc71; }
.badge.blue { background-color: #3498db; }
.badge.red { background-color: #e74c3c; }
.badge.purple { background-color: #9b59b6; }
.badge.orange { background-color: #e67e22; }
.badge.teal { background-color: #1abc9c; }

.card-body {
  padding: 16px;
  text-align: left;
}

.category {
  font-size: 13px;
  color: #8a8a8a;
  display: block;
}

.rating {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-weight: 600;
  color: #f39c12;
  margin-bottom: 5px;
}

.card-body h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 6px 0 10px;
}

.card-body ul {
  font-size: 14px;
  color: #666;
  list-style: none;
  margin-bottom: 12px;
}

.card-body ul li {
  margin-bottom: 4px;
}

.pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.new-price {
  font-weight: bold;
  color: #27ae60;
}

.old-price {
  text-decoration: line-through;
  color: #bbb;
  margin-left: 5px;
}

.save {
  font-weight: bold;
}

.save.green {
  color: #27ae60;
}

.btn-add {
  width: 50%;
  margin-top: 12px;
  background: #001F3F;
  color: white;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add:hover {
  background: #003366;
}

.view-all {
  margin-top: 40px;
}

.view-btn {
  background: #8B0000;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

.view-btn:hover {
  background: #a30000;
}

.product-container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin: 30px;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 3px;
  z-index: 1;
}

.badge-top-seller {
  background-color: #088b36ac;
}

.badge-dispatch {
  background-color: #4b32c3;
}

.card-img-top {
  height: 120px;
  object-fit: contain;
  margin-top: 20px;
  max-height: 180px;
}

.review-count {
  font-size: 12px;
  color: #6c757d;
}

.card-title {
  font-size: 13px;
  line-height: 0.7rem;
  height: 1.0rem;
  overflow: hidden;
}

.out-of-stock {
  opacity: 0.7;
  position: relative;
}

.out-of-stock:hover .out-of-stock-overlay {
  opacity: 1;
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0.5rem;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.btn-details {
  font-weight: 500;
}

.btn-cart:disabled {
  background-color: #ccc;
  border-color: #ccc;
}

.product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-cart {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background-color: #dc3545;
  border: none;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

.btn-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #ffe6e6;
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-cart:hover::before {
  left: 0;
}

.btn-cart:hover {
  color: #b30000;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .btn-cart,
  .btn-details {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
  }

  .top-badge {
    font-size: 0.6rem !important;
    width: 45% !important;
  }

  .footer-section {
    text-align: center;
  }

  .social-icon {
    font-size: 1.4rem;
  }

  .footer-link {
    margin-bottom: 0.6rem;
  }
}

.top-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  width: 30%;
}
.footer-section {
  background-color: #0b1a2f;
}

.footer-link {
  color: #ccc;
  display: inline-block;
  margin-bottom: 0.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: #ed6a6a;
  transform: translateX(5px);
}

.social-icon {
  font-size: 1.2rem;
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  color: #fff;
  transform: scale(1.2);
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
  }

  .footer-section .row > div {
    text-align: center;
  }

  .footer-section img {
    margin: 0 auto;
  }

  .footer-section .social-icon {
    font-size: 1.4rem;
  }

  .footer-section ul {
    padding-left: 0;
  }

  .footer-section ul li {
    margin-bottom: 0.5rem;
  }

  .footer-section .mt-3.d-flex {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .footer-section .col-12 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
