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

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  color: #fff;
  padding: 1rem;
  position: relative;
  z-index: 1000;
  height: 100px; /* set exact height */
}

h1 {
  font-size: 3rem; /* Default font size for larger screens */
  text-align: center;
}

.homepage {
  position: relative;
  min-height: 100vh; /* fills the viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.homepage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%; /* forces full width & height */

  z-index: 0;
}

/* Ensure content is above the background */
.homepage * {
  position: relative;
  z-index: 1;
}

/* Hamburger on left */
.menu-toggle {
  position: absolute;
  left: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 50px;
  height: auto;
  margin-bottom: 5px;
}

.header-text {
  font-size: 1.5rem;
  font-weight: bold;
}

h2,
p {
  color: white; /* Changes the text color of the <h1> within the header */
}

/* SIDEBAR */
nav {
  position: fixed;
  top: 80px; /* start below header */
  left: -250px;
  width: 250px;
  height: calc(100vh - 80px); /* full height minus header */
  background-color: #222;
  transition: left 0.3s ease;
  z-index: 999;
  padding-top: 0; /* no extra padding needed */
  overflow-y: auto; /* scrollable if menu items overflow */
  -webkit-overflow-scrolling: touch;
}

nav.active {
  left: 0;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin: 1rem 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  display: block;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: #444;
}

/* MAIN */
main {
  flex: 1;
  padding: 2rem;
  text-align: center;
}

/* FOOTER */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.social-icons {
  margin-bottom: 0.5rem;
}

.overlay-box {
  background: rgba(0, 0, 0, 0.6); /* semi-transparent black */
  color: #fff; /* white text */
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  text-align: center;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #4da3ff;
}

.image-switcher-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap; /* responsive for mobile */
}

.image-display img {
  width: 400px; /* fixed width */
  height: 300px; /* fixed height */
  object-fit: cover; /* fit entire image without cropping */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background-color: #f0f0f0; /* optional: shows behind image if aspect ratio differs */
}

.image-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
  gap: 10px; /* space between buttons */
  justify-content: center;
}

.image-buttons button {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: #333;
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s;
}

.image-buttons button:hover {
  background-color: #555;
}

.info-section {
  max-width: 800px; /* keeps text from stretching too wide */
  margin: 60px auto; /* centers container and adds spacing */
  padding: 20px;
  text-align: center; /* centers header and paragraph */
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.info-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* --- DESKTOP LAYOUT --- */
.sides-container {
  display: flex;
  justify-content: space-between; /* pushes left & right to edges */
  align-items: flex-start;
  width: 100%;
  padding: 0 40px; /* optional spacing from edges */
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-column img {
  width: 250px;
  height: 250px;
  object-fit: fill;
}

/* Hide logo on desktop */
.center-logo {
  display: none;
}

.cart-icon {
  position: absolute; /* stays inside the header */
  top: 20px;
  right: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 9999;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 12px;
}

.form-container {
  max-width: 700px;
  margin: auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
}

label {
  display: block;
  margin-bottom: 1rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
}

button {
  width: 100%;
  padding: 0.8rem;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .image-switcher-container {
    flex-direction: column;
    align-items: center;
  }

  .image-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .image-buttons button {
    margin: 5px;
  }

  nav {
    width: 100%;
    left: -100%;
    padding-top: 80px;
  }

  nav.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.5rem;
    padding: 2rem;
  }

  .image-display img {
    max-width: 300px;
  }

  .image-display img {
    max-width: 100%;
  }

  h1 {
    font-size: 2rem; /* Even smaller font size for small screens */
  }

  .info-section {
    padding: 15px;
  }

  .info-section h2 {
    font-size: 1.6rem;
  }

  .info-section p {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.5rem; /* Smaller font size for medium screens */
  }

  .overlay-box {
    padding: 20px;
    margin: 20px;
  }

  .sides-container {
    justify-content: center;
    gap: 20px;
  }

  /* Show logo on mobile */
  .center-logo {
    display: block;
    width: 150px;
    order: 1; /* place in the middle */
  }

  .left-side {
    order: 0;
  }

  .right-side {
    order: 2;
  }

  .side-column img {
    width: 100px;
    height: 100px;
    object-fit: contain; /* show whole image */
  }
}

@media (max-width: 600px) {
  .img-btns-sizes {
    grid-template-columns: repeat(2, 1fr);
  }
  .img-btns-sizes button {
    font-size: 14px;
  }
  form {
    margin: 1rem;
  }
}
