
* {
  padding:0;
  margin:0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
p {
  margin: 20px 0;
}
body {
  width: 100%;
  background: #999;
  color:#000;
  font-family: Arial, sans-serif;
}
#lightbox {
  position: fixed;
  z-index: 21;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, .93);
  cursor: pointer;
  text-align: center;
  padding-top: calc(50vh - 375px);
  visibility: hidden;
}
#lightboxImage {
  width: 750px;
  height: 750px;
  border-radius: 8px;
  border: 1px solid #fff;
}
#logo {
  position: absolute;
  width: 100px;
  z-index: 20;
  top: 15px;
  left: 35px;
}
#logo > img {
  width: 150px;
  max-width: 100%; /* Make image responsive */
  height: auto; /* Maintain aspect ratio */
}
#social {
  position: absolute;
  width: 90px;
  z-index: 7;
  top: 35px;
  left: 80px;
  padding-top: 155px;
}
#social img {
  max-width: 45px;
  margin: 5px 0;
  cursor: pointer;
}
#hamburger {
  position: fixed;
  width: 80px;
  z-index: 40;
  top: 43px;
  right: 45px;
  cursor: pointer;
}
#hamburger .bar {
  width: 60px;
  height: 10px;
  z-index: 40;
  margin: 8px 0;
  background: #000;
  border-radius: 8px;
  transition: all 0.3s ease;
}
#hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}
#hamburger.open .bar:nth-child(2) { 
  opacity: 0; 
}
#hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(15px, -15px);
}
nav {
  position: fixed;
  top: 0;
  right: -226px;
  width: 210px; /* Adjusted width for mobile menu */
  height: 100vh;
  background: rgba(0,0,0,0.8);
  padding-top: 155px; /* Adjusted padding-top for mobile menu */
  text-align: left;
  z-index: 30;
}
nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.4em;
  padding: 12px 25px;
  transition: color 0.3s;
}
nav a:hover {
  color: #fc0;
}
#cart {
  position: absolute;
  width: 60px;
  z-index: 40;
  top: 50px;
  right: 180px;
  cursor: pointer;
}
#cart > img {
  width: 60px;
}
#cartCount {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fc0;
  color: #000;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}
header {
  width: 100%;
  min-height: 150px;
  background: #E6DADA;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #274046, #E6DADA);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #274046, #E6DADA); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: rgb(2, 240, 2);
  text-shadow:rgba(0, 0, 0, .93);
  text-align: center;
  padding-top: 30px;
  font-size: 1.5em;
  font-weight: 600;
}
main {
  width: 100%;
  min-height: 700px;
  max-height: 3000px;
  background: #E6DADA;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #274046, #E6DADA);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #274046, #E6DADA); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #000;
  text-align: center;
  padding: 80px 20px 20px;
}
#search {
  position: absolute;
  z-index: 23;
  top: 170px;
  left: 20%;
  width: 60%;
  height: 50px;
  text-align: center;
}
#search > input {
  font-size: 1.5em;
  font-weight: 700;
  padding-left: 60px;
  width: 60%;
  height: 55px;
  border-radius: 6px;
  border: 2px solid #333;
}
#search > #smlLogo {
  position: absolute;
  top: 8px;
  left: 21%;
  width: 42px;
  cursor: pointer;
}
#suggestions {
  position: absolute;
  top: 60px;
  left: 20%;
  width: 60%;
  background: #fff;
  border: 2px solid #333;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 25;
}
#suggestions div {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
#suggestions div:hover {
  background: #fc0;
}
#trendingSection {
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 1350px;
  min-height: 100px;
  max-height: 3000px;
}
#resultsSection{
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 1350px;
  min-height: 100px;
  max-height: 3000px;
}
#backToCategoriesBtn {
  width: 17%;
  height: 40px;
  background: #cc0;
  color: #000;
  font-size: 1.2em;
  font-weight: 700;
}
#wishlistSection {
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 1350px;
  min-height: 100px;
  max-height: 3000px;
}
#categoriesSection {
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 1350px;
  min-height: 100px;
  max-height: 3000px;
}
#aboutSection {
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 1350px;
  min-height: 100px;
  max-height: 3000px;
}
#trendingSection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  padding-top: 20px;
}
#resultsSection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  padding-top: 20px;
}
#wishlistSection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  padding-top: 20px;
}
#categoriesSection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  padding-top: 20px;
}
#aboutSection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  padding-top: 20px;
}
#latest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
#results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
#wishlistItems {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
#categoryItems {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
#aboutContent {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  line-height: 1.6;
}
#aboutContent h3 {
  font-size: 1.5em;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}
#aboutContent p {
  margin: 15px 0;
  font-size: 1.1em;
}
.smlPoster, .poster {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.poster {
  width: 200px;
  height: 200px;
}
.smlPoster:hover, .poster:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
#productPanel {
  position: fixed;
  bottom: -750px;
  left: 30%;
  width: 40%;
  height: 750px;
  background: #fff;
  z-index: 50;
  padding: 20px 30px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}
#controls {
  text-align: right;
  margin-bottom: 20px;
}
#closeBtn {
  font-size: 2em;
  cursor: pointer;
  padding: 10px 20px;
  background: #fc0;
  border-radius: 50%;
  font-weight: 800;
}
.leftProductPanel {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.largePoster {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}
.leftProductPanel h1 {
  font-size: 2em;
  margin: 10px 0;
}
.price {
  font-size: 1.8em;
  color: #fc0;
  font-weight: bold;
  margin: 10px 0;
}
.addBtn {
  padding: 15px 40px;
  left: 0;
  font-size: 1.2em;
  background: #fc0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
  font-weight: bold;
  transition: background 0.3s;
}
.wishlistBtn {
  padding: 15px 40px;
  left: 0;
  font-size: 1.2em;
  background: #fc0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
  font-weight: bold;
  transition: background 0.3s;
}
.addBtn:hover, .wishlistBtn:hover {
  background: #fd0;
}
#cartPanel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 60;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  transition: right 0.3s;
}
#cartPanel.open {
  right: 0;
}
#cartHeader {
  background: #333;
  color: #fc0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#closeCart {
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px 15px;
  background: #fc0;
  color: #000;
  border-radius: 50%;
  font-weight: 800;
}
#cartItems {
  padding: 20px;
  height: calc(100vh - 200px);
  overflow-y: auto;
}
.cartItem {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  display: flex;
  gap: 15px;
}
.cartItem img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
#cartTotal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
}
#cartTotal p {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
}
#cartTotal button {
  padding: 10px 30px;
  background: #0c0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}
footer {
  width: 100%;
  min-height: 150px;
  max-height: 400px;
  background: #232526;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #414345, #232526);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #414345, #232526); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #fc0;
  text-align: center;
  padding-top: 25px;
  font-size: 1.1em;
  font-weight: 100;
}
#confirmPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: none;
}
#successPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: none;
}
#confirmContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#successContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#confirmContent h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
}
#successContent h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
}
#confirmContent p {
  font-size: 1.3em;
  margin-bottom: 30px;
}
#successContent p {
  font-size: 1.3em;
  margin-bottom: 30px;
}
#confirmContent button {
  padding: 15px 40px;
  font-size: 1.2em;
  background: #fc0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 5px;
}
#successContent button {
  padding: 15px 40px;
  font-size: 1.2em;
  background: #fc0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 5px;
}
.product-card-small {
  position: relative;
  text-align: center;
  width: 150px;
  cursor: pointer;
}
.product-card {
  position: relative;
  display: inline-block;
  margin: 10px;
  width: 200px;
  cursor: pointer;
  vertical-align: top;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.product-card .product-title {
  font-size: 0.9em;
  margin: 5px 0;
  color: #333;
  min-height: 40px;
}
.product-card .product-price {
  font-weight: bold;
  color: #000;
  margin: 5px 0;
}
.card-add-btn {
  display: block;
  width: 90%;
  margin: 10px auto 0;
  padding: 10px;
  font-size: 0.9em;
  font-weight: bold;
  background: #fc0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.card-add-btn:hover {
  background: #fdb500;
}
.cartItemInfo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.cartItemInfo h4 {
  margin: 0 0 5px 0;
}
.cart-item-price {
  margin: 0 0 10px 0;
  color: #555;
  font-size: 0.9em;
}
.quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 1.2em;
  line-height: 1;
  border-radius: 4px;
}
.quantity-display {
  padding: 0 12px;
  font-weight: bold;
  font-size: 1.1em;
}
.removeBtn {
  background: none;
  border: none;
  color: #c00;
  text-align: left;
  padding: 0;
  margin-top: auto;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: underline;
}

/* mobile responsive media */

@media (max-width: 1200px) {
  header h1 {
    font-size: 1.3em;
    padding-top: 90px;
  }
  #logo > img {
    width: 130px;
  }
  #social {
    width: 150px;
    top: -123px;
    left: 140px;
  }
  #hamburger {
    position: fixed;
    top: 90px;
    right: 45px;
  }
  #cart {
    top: 25px;
    right: 60px;
  }
  #search {
    width: 90%;
    left: 5%;
  }
  #search > input {
    width: 100%;
  }
  #search > #smlLogo {
    left: 10px;
  }
  #cartPanel {
    width: 100%;
    right: -100%;
  }
  #cartPanel.open {
    max-width: 350px;
    right: 0;
  }
  #lightboxImage {
    width: 90%;
    height: auto;
  }
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
  #latest, #results, #wishlistItems {
    justify-content: space-between;
  }
  footer {
    font-size: .8em;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px; /* Decrease base font size for mobile */
  }

  #logo {
    width: 80px; /* Make it smaller for mobile */
    top: 10px; /* Adjust top position for mobile */
    left: 10px; /* Adjust left position for mobile */
  }

  #social {
    width: auto; /* Allow social icons to scale */
    top: 100px; /* Position below logo */
    left: 10px; /* Align with logo */
    padding-top: 0; /* Remove unnecessary padding */
  }

  #hamburger {
    top: 30px; /* Adjust top position for mobile */
    right: 20px; /* Adjust right position for mobile */
  }

  #cart {
    top: 120px; /* Position below hamburger */
    right: 20px; /* Align with hamburger */
  }

  header {
    min-height: 100px; /* Reduced min-height for mobile header */
    padding-top: 15px; /* Reduced top padding for mobile header */
    font-size: 1em; /* Adjusted font size for mobile header */
  }

  header h1 {
    font-size: 1em; /* Adjusted h1 font size for mobile */
    padding-top: 20px; /* Adjusted h1 top padding for mobile */
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: .3em;
    padding-top: 50px;
  }
  #latest, #results, #wishlistItems {
    justify-content: space-between;
  }
  .poster, .smlPoster {
    width: 48px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  footer {
    font-size: .5em;
  }
}