* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
}

header {
  background: #111;
  color: #fff;
  padding-bottom: 2rem;
}

nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
}

.logo:visited,
.logo:hover,
.logo:focus {
  color: #fff !important;
}

.btn-secondary {
  background: #fff;
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 3rem 2rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #22a6b3;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1b8b99;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.how-it-works h2,
.about h2,
.contact h2,
#services h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.steps div {
  text-align: center;
  max-width: 140px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.item img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.item p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.item button {
  background: #22a6b3;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.item button:hover {
  background-color: #1b8b99;
}

.about,
.contact {
  margin-top: 4rem;
  text-align: center;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  margin-top: 4rem;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  text-decoration: none;
  color: #111;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  width: 200px;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.category-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
}

.hero {
  background-image: url('images/oculus-metaquest-vr-repair-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Cart button in nav */
.snipcart-summary button {
  background-color: #4f46e5;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.snipcart-summary button:hover {
  background-color: #4338ca;
}

/* Responsive nav - mobile two buttons side-by-side */
@media (max-width: 768px) {
  nav.container {
    flex-direction: row; /* side by side */
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
  }

  /* Each button approx half width */
  .btn-secondary,
  .snipcart-summary {
    flex: 1 1 48%;
  }

  .snipcart-summary button {
    width: 100%;
    margin: 0;
  }
}

/* Hamburger button - visible on all screen sizes */
.hamburger-btn {
  display: block;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1101; /* above sidebar */
}

.hamburger-btn:hover,
.hamburger-btn:focus {
  color: #22a6b3;
  outline: none;
}

/* Sidebar container */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px; /* hidden */
  width: 280px;
  height: 100vh;
  background: #111;
  color: #fff;
  padding: 2rem 1.5rem;
  box-shadow: 3px 0 8px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}

/* Sidebar open */
.sidebar.open {
  left: 0;
}

/* Overlay behind sidebar */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1090;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar nav styles */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2rem;
}

.sidebar-link {
  background: #fff;
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background-color: #22a6b3;
  color: #fff;
  outline: none;
}

/* Hide main nav links except cart on mobile */
@media (max-width: 768px) {
  nav.container > .logo,
  nav.container > .btn-secondary {
    display: none;
  }
}
.sidebar-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin-bottom: 2rem;
  align-self: flex-end;
  transition: color 0.3s ease;
}

.sidebar-close:hover,
.sidebar-close:focus {
  color: #22a6b3;
  outline: none;
}
