:root {
  --primary-color: #001745;
  --secondary-color: #aa2525;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

main {
  min-height: calc(100vh - 160px);
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #000f30;
  border-color: #000f30;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #8c1e1e;
  border-color: #8c1e1e;
}

.navbar {
  border-bottom: 1px solid #dee2e6;
}

.card-product {
  transition: transform 0.2s;
  border: 1px solid #dee2e6;
}
.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-img-container {
  height: 250px;
  background-color: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-primary {
  background-color: var(--primary-color) !important;
}

.product-img-container {
  height: 250px;
  background-color: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.custom-hero {
  background: linear-gradient(135deg, #001745 0%, #949dae 100%);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.68;
  background-image: url(../../global/uploads/banners/banner-20250818-1755500075.jpg);
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
}

.custom-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(170, 37, 37, 0.25) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-title {
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.btn-hero {
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(170, 37, 37, 0.4) !important;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 23, 69, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #aa2525;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 992px) {
  .table-responsive-md table,
  .table-responsive-md thead,
  .table-responsive-md tbody,
  .table-responsive-md th,
  .table-responsive-md td,
  .table-responsive-md tr {
    display: block !important;
  }

  .table-responsive-md thead {
    display: none !important;
  }

  .table-responsive-md tr.cart-item {
    position: relative;
    padding: 20px 15px !important;
  }

  .table-responsive-md td {
    border: none !important;
    padding: 5px 0 !important;
  }

  .table-responsive-md td:first-child {
    padding-right: 35px !important;
  }

  .table-responsive-md td:nth-child(2) {
    display: inline-block !important;
    margin-top: 15px;
  }

  .table-responsive-md td:nth-child(3) {
    display: inline-block !important;
    float: right;
    margin-top: 20px;
    padding-right: 5px !important;
  }

  .table-responsive-md td:last-child {
    position: absolute;
    top: 20px;
    right: 15px;
  }
}
