/* General */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}


/* Hero */
.hero {
  text-align: center;
  background: linear-gradient(to right, #0a3d62, #1e90ff);
  color: white;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Products */
.products {
  padding: 40px 20px;
}

.products h2 {
  text-align: center;
  margin-bottom: 20px;
}

.products h3 {
  margin: 20px 0 10px;
  color: #0a3d62;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h4 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.price {
  display: block;
  font-size: 1.1rem;
  color: #1e90ff;
  margin: 10px 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1e90ff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #0a3d62;
}

/* Footer */
/* Footer Styling */
.footer {
  background: #0a3d62; /* Harms Tech deep blue */
  color: #fff;
  padding: 40px 20px;
}

.footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left side: Logo + slogan */
.footer-brand {
  flex: 1;
  min-width: 250px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-row .logo-img.small {
  width: 55px;
  height: auto;
  border-radius: 8px;
}

.footer-brand strong {
  font-size: 1.3rem;
}

.footer-brand p {
  margin-top: 2px;
  font-style: italic;
  font-size: 0.95rem;
  color: #dfe6e9;
}

/* Right side: Contact & social links */
.contact-icons {
  flex: 1;
  min-width: 250px;
  text-align: right;
}

.contact-icons a {
  margin: 0 8px;
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s, transform 0.2s;
}

.contact-icons a:hover {
  color: #1e90ff; /* lighter Harms Tech blue */
  transform: translateY(-3px);
}

/* Bottom section: copyright + location */
.footer p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.footer .copyright {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #dcdde1;
  text-align: center;
  flex-basis: 100%;
}
.category-tag {
  display: inline-block;
  background: #007bff; /* Harms Tech blue */
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}
/* === General Page Layout === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fefefe;
  line-height: 1.6;
}

.page-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

/* === Product Grid & Cards === */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-card h4 {
  margin: 5px 0;
}

.product-card .price {
  font-weight: bold;
  margin: 5px 0 10px 0;
}

.add-to-cart {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background: #0056b3;
}

/* === Floating Cart Icon === */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cart-icon:hover {
  background: #0056b3;
}

/* === Side Cart Panel === */
.cart-panel {
  position: fixed;
  top: 0;
  right: -400px; /* hidden by default */
  width: 350px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  border-left: 1px solid #ccc;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  z-index: 150;
  transition: right 0.3s ease-in-out;
  border-radius: 10px 0 0 10px;
}

/* Show panel */
.cart-panel.open {
  right: 0;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-header h3 {
  margin: 0;
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: #007bff;
}

/* Cart Table */
.cart-panel table {
  width: 100%;
  border-collapse: collapse;
}

.cart-panel table th,
.cart-panel table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 0.9rem;
}

/* Cart Total & Buttons */
.cart-total {
  font-weight: bold;
  margin-top: 10px;
  text-align: right;
}

.cart-panel .btn-checkout {
  width: 100%;
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.cart-panel .btn-checkout:hover {
  background: #218838;
}

/* === Responsive === */
@media (max-width: 768px) {
  .product-card {
    flex: 1 1 100%;
  }
  .cart-panel {
    width: 90%;
  }
}

#cart-panel {
  position: fixed;
  top: 0;
  right: -400px; /* hidden initially */
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

#cart-panel.active {
  right: 0; /* slide in */
}

#cart-close {
  cursor: pointer;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
}
 
/* Cart Panel */
#cart-panel {
  position: fixed;
  top: 0;
  right: -400px; /* hidden by default */
  width: 350px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-radius: 10px 0 0 10px;
}

/* When cart is active */
#cart-panel.active {
  right: 0;
}

/* Close Button */
#cart-close {
  font-size: 1.8rem;
  cursor: pointer;
  align-self: flex-end;
}

/* Cart Header */
#cart-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
}

/* Cart Items */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  display: block;
  font-weight: bold;
}

.cart-item-price {
  display: block;
  color: #333;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-btn {
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
}

.remove-item {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: red;
  margin-left: 10px;
}

/* Cart Total */
#cart-total {
  font-weight: bold;
}

/* Checkout Button */
#checkout-btn {
  margin-top: 15px;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* Cart Icon */
#cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #007bff;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: transform 0.2s;
}

/* Hover effect for floating feel */
#cart-icon:hover {
  transform: translateY(-3px);
}
/* Cart Icon */
#cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0056d6; /* Harms Tech Blue */
  color: white;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Cart Panel */
#cart-panel {
  position: fixed;
  top: 0;
  right: -400px; /* hide by default */
  width: 350px;
  height: 100%;
  background: #f5f8ff; /* light tech feel */
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 10000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

#cart-panel.active {
  right: 0;
}

/* Overlay */
#cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9000;
}

#cart-overlay.active {
  display: block;
}

/* Cart Items */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.cart-item-info {
  flex: 2;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-btn {
  background: #0056d6;
  color: white;
  border: none;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 5px;
}

.remove-item {
  background: #ff4c4c;
  border: none;
  color: white;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 5px;
}

/* Total and Checkout */
.cart-total {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.1rem;
}

#checkout-btn {
  margin-top: 15px;
  padding: 10px;
  background: #0056d6;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s;
}

#checkout-btn:hover {
  background: #003f9e;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.logo-img {
  height: 35px;
  margin-right: 8px;
}


/* Contact button */
.btn-primary {
  padding: 0.5rem 1rem;
  background: #ffd32a;
  color: #0a3d62;
  border-radius: 8px;
  font-weight: bold;
}

.cart-icon {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  cursor: move;
}



