:root {
  --enagic-blue: #004da1;
  --font: "Noto Sans", Helvetica, Arial, sans-serif;
  --white: white;
  --background: rgb(255, 255, 255);
  --blue: #0077cc;
}

* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  padding-top: 40px;
  width: 100%; 
  height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
  font-family: var(--font);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(0.55rem, 0.8vw, 1rem);
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.logo img {
  height: 36px;
  width: auto;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-home-link {
  display: none;
  font-size: 18px;
  text-decoration: none;
  color: var(--enagic-blue);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--enagic-blue);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.nav-links a::after,
.mobile-home-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #094e8e, #0b39cf);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header.scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}
.hamburger {
  display: none !important;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  color: var(--white);
  background-color: var(--enagic-blue);
  margin: 5px 4px;
  padding: 2px 10px;
  border-radius: 8px;
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {

  .hamburger{
    display: block !important;
  }

  .mobile-home-link {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    gap: 7px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 4px 16px;
    border-bottom: 1px solid #f8f6f6;
    text-align: right;
    font-weight: 600;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }

  .logo {
    font-size: 20px;
  }
}

.cart-header-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 30px;
  background: transparent;
  box-shadow: none;
}

.view-cart-btn {
  background-color: var(--enagic-blue);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.container {
  max-width: 1450px;
  margin: 0px auto;
  padding: 20px;
}

.container h1 {
  font-size: 2.8rem;         
  font-weight: 800;        
  margin: 0 0 2rem 0;   
  color: var(--enagic-blue);            
  text-align: center;     
  line-height: 1.2; 
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  background-color: var(--blue);
  color: white;
  border-radius: 0.6rem;
  cursor: pointer;
  white-space: nowrap; 
  flex-shrink: 0;
  font-weight: 400;
}

@media (max-width:768px){

  .filter-bar {
    overflow-x: hidden;
    overflow-y: hidden;
    gap:0.7rem;
  }
  .filter-btn {
    font-size: 0.8rem;
  }
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--enagic-blue);
  color: white;
  transform: scale(1.03);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.product {
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.product:hover {
  transform: scale(1.04);
}

.product img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.product h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.product p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.quantity-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-box span {
  font-weight: bold;
  font-size: 15px;
}

button {
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

button.remove-btn {
  background-color: #e60023;
  margin-top: 8px;
  padding: 6px 10px;
}

.connect-message {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  color: #333;
  text-align: center;
}

.connect-now-btn {
  background-color: var(--enagic-blue);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

.connect-now-btn:hover {
  background-color: #005fa3;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  .cart-header-bar {
    padding: 8px 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product {
    padding: 12px;
  }

  .product img {
    max-height: 100px;
  }

  .product h3 {
    font-size: 15px;
  }

  .product p {
    font-size: 13px;
  }

  button {
    font-size: 13px;
    padding: 5px 10px;
  }

  .quantity-box {
    gap: 8px;
  }
}

@media (max-width: 768px) {

  .view-cart-btn, .back-btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .back-btn {
    margin-right: auto;
  }

  .view-cart-btn {
    margin-left: auto;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: 1 0 auto;
    white-space: nowrap;
    padding: 8px;
  }
}

footer {
  background-color:#004da1;
  backdrop-filter: blur(2px);
  text-align: center;
  color: white;
  padding: 1rem;
}

.footer-desktop-line {
  margin-top: 6px;
  color: white;
  font-size: 15px;
}

.footer-desktop-line a {
  color: #fff;
  text-decoration: underline;
  line-height: 1.5;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-desktop-line a:hover {
  color: #e0f0ff;
}

.footer-logo-inline {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin: 0 0.2rem;
  object-fit: contain;
}

.footer-line-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: white;
}

.footer-line-1 a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-line-1 a:hover {
  color: #e0f0ff;
}

.footer-line-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  color: white;
}

.footer-mobile-stack {
  display: none;
}

@media (max-width: 768px) {

  .footer-mobile-stack {
    display: block;
    font-size: 14px;
    font-weight: 500;
  }

  .footer-desktop-stack {
    display: none;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.modal-box button {
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--enagic-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-link{
  font-weight: 500;
  color: darkblue;
}