@font-face {
  font-family: "Orbitron Bold";
  src: url("fonts/orbitron-bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Monument Bold";
  src: url("fonts/monument-bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Monument";
  src: url("fonts/monument.woff2") format("woff2");
  font-weight: regular;
  font-style: normal;
}

:root[data-bs-theme="dark"] {
  --bs-body-bg: rgb(15, 15, 15);  /* true black background */
  --bs-body-color: #fff; /* white text */
}

.form-select:focus, .form-control:focus {
  border-color: green !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 0, 0.25) !important;
}

ul {
  list-style: none;
}

#themeToggle {
  height: 1.7rem !important;
  width: 1.7rem  !important;
  margin: auto 0 !important;
  background-color: transparent !important;
  border: none !important;
}

.nav-link {
  font-weight: 500;
  font-size: 0.8vw;
  margin: 0 0.5vw;
}

.nav-link:hover{
  color: white !important;
}

.products-mobile {
  visibility: hidden;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: left;                  /* center their text */
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;  /* space between items vertically */
  }

  .nav-link {
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0.5vw;
  }

  .products-mobile {
    visibility: visible;
  }
}

.left li {
  font-size: 14px;
  padding: 0.5vh 0;
  background: transparent;
  transition: background 0.2s;
}

/* Highlight when hovering li */
.left li:hover,
.left li:focus,
.left li.active {
  background: rgba(240, 240, 255, 0.9);
}

/* Keep the li highlighted when hovering over the right panel */
.left li:hover ~ .right,
.right:hover {
  /* This alone won’t keep the li highlighted —
     so we’ll need JS to add a class */
}

.left li.active {
  background: rgba(240, 240, 255, 0.9);
}

#searchForm {
  width: 50%;
  position: relative;
}

@media (max-width: 991px) {
  #searchForm {
    width: 90vw !important;
    max-width: 90vw !important;
  }
}

#suggestionsList,
#suggestionsList li,
.dropdown-menu,
.list-group {
  background-color: inherit !important;
  color: #000000 !important; /* make text readable */
}

/* Show when hovering nav item */
.nav-item:hover .dropdown-mega {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.nav-item {
  border: 2px solid transparent;
}

/* ===== MEGA MENU WRAPPER ===== */
.mega-hover {
  position: static;
}

/* HIDE BY DEFAULT */
.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  min-height: 420px;
  z-index: 9999;
  border-top: 3px solid #198754;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

/* ✅ KEEP OPEN WHEN HOVERING PARENT OR MENU */
.mega-hover:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* LINKS */
.mega-link {
  display: block;
  color: #333;
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
}

.mega-link:hover {
  color: #198754;
  text-decoration: underline;
}

.mega-service {
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.mega-service:hover {
  color: #198754;
}


@media (max-width: 991px) {

  .products {
    display: none !important;
  }

  .left li:hover,
  .left li:focus,
  .left li.active {
    background: transparent;
  }
}

.slides {
  height: auto;
  padding-top: 16vh;
}

/* Carousel arrow icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  font-size: 2.5rem; /* default size */
  color: white!important;
}

.carousel-control-prev:focus, .carousel-control-next:focus { 
  opacity: 0; outline: none; box-shadow: none;
}

    /* Hide until hover */
.carousel-control-prev,
.carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

    /* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    font-size: 0;
  }
  .carousel {
    min-height: 35vh; /* smaller carousel */
  }
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus,
.navbar-toggler:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (min-width: 992px) {  /* lg and up */
  .navbar .container-fluid {
    padding-left: 12vw !important;
    padding-right: 12vw !important;
  }
}

@media (max-width: 991px) {  /* md and below */
  .navbar .container-fluid {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }

  #themeToggle {
    margin: 2vh 0 4vh !important;
  }
}

.card:hover {
  box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.4)
}

.econtainer, .ncontainer, .tcontainer, .tpcontainer, .rcontainer, .pcontainer {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* smooth touch scrolling */
  scroll-behavior: smooth;           /* smooth scroll when snapping */
  padding-bottom: 10px;
  cursor: grab;                       /* shows draggable cursor */
}
img {
  user-select: none;
}

.econtainer a, .ncontainer a, .tcontainer a, .tpcontainer a, .rcontainer a, .pcontainer a {
  text-decoration: none;                   /* shows draggable cursor */
}

@media (max-width: 991px) {
  .slides {
    height: auto;
    max-height: 30vh;
    padding-top: 9vh;
  }
}

/* optional: change cursor while dragging */
.rcontainer:active, .pcontainer:active {
  cursor: grabbing;
}


.tcontainer::-webkit-scrollbar, .econtainer::-webkit-scrollbar, .tpcontainer::-webkit-scrollbar, .ncontainer::-webkit-scrollbar, .rcontainer::-webkit-scrollbar, .pcontainer::-webkit-scrollbar {
  visibility: hidden;
}

.tcontainer::-webkit-scrollbar-thumb, .econtainer::-webkit-scrollbar-thumb, .tpcontainer::-webkit-scrollbar-thumb, .ncontainer::-webkit-scrollbar-thumb, .rcontainer::-webkit-scrollbar-thumb, .pcontainer::-webkit-scrollbar-thumb {
  background: #198754;
}

.card-title {
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;       /* keep text in a single line */
  overflow: hidden;          /* hide overflow text */
  text-overflow: ellipsis;   /* add "..." at the end */
}

.card {
  flex: 0 0 auto; /* prevents shrinking */
  background: black;
  color: white;
  border: 1px solid rgba(100, 100, 100, .6);
}

[data-bs-theme="light"] .card {
  background-color: #fff;   /* white card */
  color: #000;              /* dark text */
}

.rcontainer .card {
  flex: 0 0 calc(33.333% - 1rem);
  width: calc(33.333% - 1rem);
}

@media (max-width: 918px) {
  .rcontainer .card {
    flex: 0 0 calc(50% - 1rem);
    width: calc(50% - 1rem);
  }

  .econtainer .card {
    flex: 0 0 50%;
    width: 50%;
  }

  .contact-us {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .econtainer .card {
    flex: 0 0 100%;
    width: 100%;
  }
}

.maps {
  width: 65%;
  height: 400px;
}

.map-dets {
  width: 35%;
}

@media (max-width: 768px) {
  .maps {
    width: 100%;
    height: 200px;
    margin-top: 20px;
  }       
  .map-dets {
    width: 100%;
    height: 200px;
    margin-top: 20px;
  }         
  
}

.container a {
  text-decoration: none;
}

.text-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* show only 5 lines */
  -webkit-box-orient: vertical;
}

.text-content.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

#toggleBtn {
  background: none;
  border: none;
  margin-bottom: 2vh;
  color: #198754; /* Bootstrap green */
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.facebook{
  bottom: 3vh;
  right: 2vw;
  z-index: 10;
  position: fixed;
  height: 40px;
}

.contacts a{
  margin: 5px 0;
}

.contacts a:hover {
  text-decoration: underline !important;
}

.contacts {
  padding-top: 15px;
  user-select: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button {
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: #198754; /* your bg-success color */
  color: #fff;
  box-shadow: none;
}

.scroll-wrapper {
  position: relative;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-btn {
  position: absolute;
  top: 10%;                        /* center vertically */
  transform: translateY(-50%);     /* adjust to perfect center */
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 5;
}

.scroll-btn.left {
  right: 1%;
}

.scroll-btn.right {
  right: 1%;
}

@media (max-width: 991px) {
  .scroll-btn.left {
  display: none;
}

.scroll-btn.right {
  display: none;
}
}

/* Ensure Bootstrap modals always appear above all product containers */
.modal{
  z-index: 2000 !important;  /* higher than any container */
}

/* Optional: make sure product containers don’t create stacking context */
.tcontainer,
.ncontainer,
.tpcontainer,
.rcontainer,
.pcontainer {
  position: static !important; /* removes stacking context */
  z-index: auto !important;
}

#megaMenu {
  margin-top: -4.5vh !important;
}

.skew-box {
  background: #198754; /* example background */
  transform: skew(-20deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unskew {
  transform: skew(20deg);
  display: inline-block;
}

#profileTabs {
  border-bottom: none;
}

#profileTabsContent {
   border: none !important;
}

#profileTabs .nav-link {
  color: black;
  border: none;
  font-size: 1.3rem
}

#profileTabs .nav-link:hover,
#profileTabs .nav-link.active {
  color: var(--bs-success) !important;
  background-color: transparent !important;
  border: none !important;
}

.table-name-col {
  width: 92%;
}

.table-qty-col {
  width: 8%;
}

/* Only change text color to white in dark mode */
html[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: white !important;
}

/* Make sure active tab text is also white */
html[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: white !important;
}
