* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
#mobile-menu {
  display: flex;
  flex-direction: column;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 50%;
  bottom: 0;
  background: yellow;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link:hover {
  color: yellow;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  color: #fff;
  border: 1px solid #fff;
  min-height: 50px;
  padding: 0 20px;
  margin-top: 2rem;
  font-size: 17px;
  text-transform: uppercase;
  z-index: 1;
  position: relative;
  background-color: transparent;
}

.btn-white::before {
  content: "";
  background-color: #fff;
  display: block;
  width: 45px;
  height: 1px;
  margin-right: 20px;
}

.btn-white::after {
  content: "";
  background-color: #fff;
  display: block;
  width: 0%;
  height: 100%;
  right: 0;
  top: 0;
  position: absolute;
  z-index: -1;
  transition: all 0.3s ease-out;
}

.btn-white:hover {
  color: #232963;
}

.btn-white:hover::after {
  width: 100%;
}

.btn-white:hover::before {
  background-color: #232963;
}

/* Card Styles */
.card {
  --bg-card: #112b3c;
  --primary: #112b3c;
  --primary-800: #f66b03;
  --primary-shadow: #e05e02;
  --light: #efefef;
  --zinc-800: #e8e8e8;
  --bg-linear: linear-gradient(0deg, var(--primary) 50%, var(--light) 125%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  width: 14rem;
  background-color: var(--bg-card);
  border-radius: 1rem;
}

.image_container {
  overflow: hidden;
  position: relative;
  z-index: 5;
  width: 100%;
  height: 12rem;
  background-color: var(--light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1s ease;
}

.image_container .img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.image_container:hover { 
  transform: scale(1.5);
  box-shadow: 0 0 1rem 0.25rem var(--primary-shadow);
}

.title {
  overflow: clip;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  text-transform: capitalize;
  text-wrap: nowrap;
  text-overflow: ellipsis;
}

.cables-products {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

   /* Loading overlay styles */
   #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: grid;
    place-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: auto;
  }

  #loading-overlay[hidden] {
    display: none;
    pointer-events: none;
  }

  /* Loading logo styles */
  #loading-logo {
    width: min(150px, 30vw);
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
  }

  /* Pulse animation */
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }

  /* Prevent scroll during loading */
  body.loading {
    overflow: hidden;
    touch-action: none;
  }

  /* Mobile optimization */
  @media (max-width: 767px) {
    #loading-logo {
      width: 25vw;
      min-width: 80px;
    }
  }

/* Mobile Menu Fixes */
#mobile-menu {
  z-index: 10000;
}

@media (max-width: 768px) {
  body {
      overflow-x: hidden;
  }
  

  
  .btn-menu {
      z-index: 10001;
  }
}

/* Table Responsive Fixes */
.table-container {
  background: white;
  padding: 8rem;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.393);
  text-align: center;
  overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: bolder;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #f66b03;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #112b3c;
    color: white;
}
td{
  color: #333;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
@media (max-width: 1024px) {
  .table-container {
      padding: 4rem; /* Reduce padding */
  }
}

@media (max-width: 768px) {
  .table-container {
      padding: 2rem; /* Further reduce padding */
  }

  table {
      font-size: 14px; /* Reduce text size */
  }

  th, td {
      padding: 8px; /* Reduce padding inside cells */
  }
}

@media (max-width: 480px) {
  .table-container {
      padding: 1rem;
      overflow-x: auto; /* Allow horizontal scrolling */
  }

  table {
      font-size: 12px;
      min-width: 400px; /* Ensure table doesn't shrink too much */
  }

  th, td {
      padding: 6px;
  }
  .container{
    justify-content: space-between;
  }
}
