@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: normal;
  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;
}

.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: 30vw;
  max-width: 30vw;
  position: relative;
}

@media (max-width: 576px) {
  #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 */
}

.dropdown-mega {
  display: none;
  position: fixed;             /* ✅ fixed to viewport */
  top: 11vh;                  /* adjust so it sits just under the navbar */
  left: 50%;
  color: black;
  transform: translateX(-50%);
  width: 80vw;                 /* 80% of screen width */
  height: 400px;               /* fixed height */
  background: white;
  border-radius: 0 0 8px 8px;
  padding: 2rem;
  z-index: 1050;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);

  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: flex-start;

  opacity: 1;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show when hovering nav item */
.nav-item:hover .dropdown-mega {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Left categories */
.dropdown-mega .left {
  flex: 1;
  border-right: 1px solid #e5e5e5;
  padding-right: 1.5rem;
  overflow-y: auto;
}

/* Right products */
.dropdown-mega .right {
  flex: 3;
  padding-left: 1.5rem;
  overflow-y: auto;
}


/* --- Mobile override --- */
@media (max-width: 991px) {
  .dropdown-mega {
    display: none; 
    height: auto;
    top: 0;
    color: white !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;                 /* center based on screen */
    flex-direction: row;        /* ⬅ make it side by side on mobile */
    gap: 0;
    background: inherit !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
  }

  .left li:hover,
  .left li:focus,
  .left li.active {
    background: transparent;
  }

  .dropdown-mega.show {
    display: flex;
  }

  .dropdown-mega .left {
    flex: 1;
    margin-left: -5vw;;
    max-height: 300px;
    overflow-y: auto;
  }

  #megaContent li a{
  color: white !important;
  font-size: 14px !important;
}

  .dropdown-mega .right {
    flex: 2;
    color: white !important;;
    max-height: 300px;
    overflow-y: auto;
  }

  /* Center nav links on mobile */
}

/* Carousel arrow icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  font-size: 2.5rem; /* default size */
  color: #28a745;
}

.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: 1.5rem; /* smaller arrows on mobile */
  }
  .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");
}

@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;
  }
}

.card:hover {
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.6)
}

.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(200, 200, 200, .3);
}

[data-bs-theme="light"] .card {
  background-color: #fff;   /* white card */
  color: #000;              /* dark text */
}

.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;
}

.emailus, .facebook{
  bottom: 3vh;
  right: 2vw;
  position: fixed;
  z-index: 10;
  height: 40px;
}

.contacts a{
  margin: 5px 0;
}

.contacts a:hover {
  text-decoration: underline !important;
}

.container h5 {
  margin-top: 10vh;
}

#contacts {
  margin-top: 5vh !important;
  padding-top: 15px;
  user-select: none;
}

.products {
  flex: 0 0 calc(25% - 1rem); /* 4 per row on desktop */
  max-width: calc(25% - 1rem);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .products {
    flex: 0 0 calc(33.33% - 1rem); /* 3 per row on tablet */
    max-width: calc(33.33% - 1rem);
  }
}

@media (max-width: 576px) {
  .products {
    flex: 0 0 calc(50% - 1rem); /* 2 per row on mobile */
    max-width: calc(50% - 1rem);
  }
}


.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;
}
