/* Navbar Section */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

header {
  background-color: #1a1a1a;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 40px;
  height: 70px;
  position: relative;
}

.logo-with-text {
  display: flex;
  align-items: center;
  padding: 10px 0px;
  color: white;
}

.company-logo {
  height: 70px;
  margin-right: 15px;
  padding-top: 10px;
}

.company-title {
  font-size: 18px;
  color: white;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-menu a {
  text-decoration: none;
  color: white;
  font-size: 16px;
}

.main-menu a:hover {
  color: #00AEEF;
}

.social-icons i {
  font-size: 18px;
  margin-left: 10px;
  color: white;
  cursor: pointer;
}

.hamburger {
  font-size: 28px;
  color: white;
  display: none;
  cursor: pointer;
}

.product-dropdown {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.product-dropdown a {
  padding: 4px 0;
  font-size: 15px;
  color: white;
  text-decoration: none;
}

.product-dropdown.show {
  display: flex;
}

.product-icon {
  display: none;
  margin-left: 5px;
  color: #8B1C13;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    background-color: #060606;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
    padding: 10px 20px;
  }

  .main-menu.show {
    display: flex !important;
  }

  .main-menu a {
    padding: 8px 0;
    font-size: 16px;
  }

  .products-toggle {
    margin-left: 107px;
  }

  .product-dropdown a {
    margin-left: 80px;
    margin-top: 5px;
  }

  .product-dropdown a::before {
    content: '•';
    /* bullet character */
    position: absolute;
    left: 100px;
    color: white;
    /* bullet color */
    font-size: 20px;
    line-height: 1;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
    width: 100%;
  }

  .product-icon {
    display: inline;
  }

  .product-wrapper .product-dropdown {
    padding-left: 20px;
  }
}

@media screen and (max-width: 415px) {
  .company-title {
    font-size: 13px;
    color: white;
  }
}

/* Desktop Dropdown */
@media screen and (min-width: 769px) {
  .product-dropdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #1a1a1a;
    padding: 10px 20px;
    flex-wrap: wrap;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .dropdown-toggle i {
    font-size: 13px;
    color: #fff;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 260px;
    z-index: 1000;
    flex-direction: column;
    padding: 10px;
    border-radius: 4px;
    padding-left: 20px;
  }

  .dropdown-menu a {
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    display: block;
  }

  .dropdown-menu a::before {
    content: '•';
    /* bullet character */
    position: absolute;
    left: 10px;
    color: white;
    /* bullet color */
    font-size: 20px;
    line-height: 1;
  }

  .dropdown-menu a:hover {
    background-color: #8B1C13;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  padding: 20px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9f9f9;
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0 5px;
}

.card-icons {
  display: flex;
  gap: 10px;
  font-size: 18px;
  color: #555;
}

.card-price {
  color: red;
  font-weight: bold;
  font-size: 16px;
  margin: 8px 0;
}

.card-specs {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
}

.card-specs div {
  margin-bottom: 4px;
}

.card-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  border: 1px solid #8B1C13;
  background-color: #fff;
  color: #8B1C13;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.btn.view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.contact {
  background-color: #8B1C13;
  color: #fff;
  border: none;
}



/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  font-size: 18px;
  background-color: #8B1C13;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn:hover {
  background-color: #555;
  transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  #scrollTopBtn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  #scrollTopBtn {
    width: 36px;
    height: 36px;
    font-size: 14px;
    bottom: 45px;
    right: 12px;
  }
}

@media (max-width: 360px) {
  #scrollTopBtn {
    width: 32px;
    height: 32px;
    font-size: 12px;
    bottom: 50px;
    right: 15px;
  }
}