/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  background-color: #004d40;
  color: white;
  padding: 1em 2em;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 2px;
}

main {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

h2 {
  margin-bottom: 1em;
  color: #00695c;
}

/* Category Navigation */
nav.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}
nav.categories button {
  background: #004d40;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin: 0.3em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
nav.categories button:hover, nav.categories button.active {
  background: #00796b;
}

/* Products Grid */
section.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 1.5em;
}
.product-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 0.8em;
}
.product-title {
  font-weight: 700;
  color: #00796b;
  margin-bottom: 0.5em;
}
.product-price {
  font-weight: 600;
  margin-bottom: 0.8em;
  color: #004d40;
}
.product-desc {
  font-size: 0.9em;
  margin-bottom: 1em;
  flex-grow: 1;
}
.btn-add-cart {
  background: #00796b;
  color: white;
  border: none;
  padding: 0.5em 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-add-cart:hover {
  background: #004d40;
}

/* Cart Sidebar */
#cartSidebar {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 10px rgba(0,0,0,0.15);
  padding: 1.5em;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
}
#cartSidebar.open {
  transform: translateX(0);
}
#cartSidebar h3 {
  margin-bottom: 1em;
  color: #004d40;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.8em;
}
.cart-item-name {
  font-weight: 600;
}
.cart-item-controls {
  display: flex;
  align-items: center;
}
.cart-item-controls button {
  background: #00796b;
  color: white;
  border: none;
  padding: 0 8px;
  margin: 0 0.2em;
  border-radius: 4px;
  cursor: pointer;
}
.btn-close-cart {
  background: #c62828;
  color: white;
  border: none;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-top: -1.5em;
}

/* Cart toggle button */
#btnCartToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #00796b;
  color: white;
  border: none;
  padding: 0.8em 1em;
  border-radius: 50px;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  section.products-grid {
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  }
  #cartSidebar {
    width: 100vw;
  }
}
/* About Us Section Styling */
#aboutUs {
  margin-top: 3em;
  padding: 2em;
  background-color: #e0f2f1; /* Light teal background */
  border-radius: 8px;
  color: #004d40;
  box-shadow: 0 4px 12px rgba(0, 77, 64, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1em;
  line-height: 1.6em;
}

#aboutUs h2 {
  margin-bottom: 1em;
  font-weight: 700;
  border-bottom: 2px solid #00796b;
  padding-bottom: 0.5em;
  font-size: 2em;
  text-align: center;
}

#aboutUs p {
  margin-bottom: 1em;
  text-align: justify;
}
.btn-add-cart {
    background: #00796b;
    color: white;
    border: none;
    padding: 0.5em 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-bottom: 0.5em;
}

.btn-add-cart:hover {
    background: #004d40;
}

/* Buy Now Button */
.btn-buy-now {
    background: #ff9800;
    color: white;
    border: none;
    padding: 0.5em 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-buy-now:hover {
    background: #e68900;
}


.toolsy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #004d40;
  color: white;
  padding: 1em 2em;
  gap: 24px;
}

.toolsy-logo {
  height: 48px;
  margin-right: 16px;
}

.toolsy-title {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.toolsy-nav {
  margin-left: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  color: white;
  background: #00796b;
  font-size: 16px;           /* Smaller font */
  text-decoration: none;
  font-weight: 500;
  padding: 4px 12px;         /* Smaller paddings */
  border-radius: 3px;
  border: none;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  height: auto;
  line-height: 1.2;
}

.nav-link:hover {
  background: #005d4c;
  color: #fffbe6;
}