*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#image-container {
    width: 100%;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 10px;
    margin-top: 15px;
}

#image-slider {
    display: flex;
    width: 500%; 
    animation: slide 25s infinite ease-in-out;
}

#image-slider > img {
    width: 100vw; 
    height: 400px;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    10% { transform: translateX(0%); }

    20% { transform: translateX(-100vw); }
    30% { transform: translateX(-100vw); }

    40% { transform: translateX(-200vw); }
    50% { transform: translateX(-200vw); }

    60% { transform: translateX(-300vw); }
    70% { transform: translateX(-300vw); }

    80% { transform: translateX(-400vw); }
    90% { transform: translateX(-400vw); }

    100% { transform: translateX(0%); }
}

#dashboard-logo>img{
    width: 100px;
    height: 50px;
    border-radius: 5px;
    position: relative;
    top: 10%;
}
 #nav-bar{
    display: flex;
    justify-content: space-around;
    background-color: #333;
    border-radius: 5px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
 }
#dashboard-logo{
    display: flex;
    justify-content: space-around;
    width: 300px;
}
#dashboard-logo>h3{
    position: relative;
    top: 30%;
    left: 10%;
    color: white;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

}
#nav-button{
    width: 400px;
    display: flex;
    justify-content: space-between;
    position: relative;
    right: 5%;
    align-items: center;
    top: 50%;
    
}
#nav-select{
    width: 400px;
    display: flex;
    justify-content: space-around;
    margin: 20px;    
    
}
#nav-select option{
     padding: 7px;
    
}
#nav-select>button{
    padding: 7px;
    font-size: 16px;
    border-radius: 5px;
    color: white;
    background-color: #333;
    border: none;
    
}

#nav-button>button{
    padding: 7px;
    font-size: 16px;
    border-radius: 5px;
    color: white;
    background-color: #333;
    border: none;
    
}

span{
    color: white;
}
.material-symbols-outlined{
    position: relative;
    left: 10%;
    top: 10%;
}
#electronics{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 98%;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 50px;
    left: 2%;
    
}
#electronics-div>img:nth-of-type(1){
    width: 50%;
    height: 200px;
}
#electronics-div>img:nth-of-type(2){
    width: 75px;
    height: 75px;
}
#electronics-div{
    width: 300px;
    height: 350px;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
#electronics-section-heading{
    font-weight: 100;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 50px;
    margin-left: 25px;
    margin-bottom: 15px;
}
#electronics-div>p{
      font-size: 20px;
}
#shop-category{
    text-align: center;
    margin-top: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#fashion{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 98%;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 50px;
    left: 2%;
    gap: 15px;
}
#fashion-div>img:nth-of-type(1){
    width: 100%;
    height: 300px;
}
#fashion-div>img:nth-of-type(2){
    width: 25%;
    height: 50px;
}
#fashion-div{
    width: 300px;
    height: 450px;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border-radius: 20px;   
}
#fashion-div>p{
      font-size: 20px;
}
#fashion-section-heading{
    font-weight: 100;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 50px;
    margin-left: 25px;
    margin-bottom: 15px;
}
#fashion-div>h3 {
    margin:20px;
    font-style: italic;
}


#home{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 98%;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 50px;
    gap: 15px;
    left: 2%;
}
#home-div>img:nth-of-type(1){
    width: 100%;
    height: 300px;
}
#home-div{
    width: 300px;
    height: 450px;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border-radius: 20px;
    
}
#home-div>p{
      font-size: 20px;
}
#home-div>h3{
      font-family:Georgia, 'Times New Roman', Times, serif;
}
#home-section-heading{
    font-weight: 100;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 50px;
    margin-left: 25px;
    margin-bottom: 15px;
}
#home-div>h3 {
    margin:20px;
}
#footer{
    background-color: #333;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content:space-around;
    align-items: center;
    color: white;
    margin-top: 50px;
    border-radius: 10px;
}
#footer h4{
    color:bisque;
    margin-bottom: 10px;
}
#dashboard-btn{
    cursor: pointer;
}
#fashion-btn{
    cursor: pointer;
}
#electronics-btn{
    cursor: pointer;
}
#home-btn{
    cursor: pointer;
}
#signin{
    cursor: pointer;
}
#signup{
    cursor: pointer;
}
#logout-btn{
    cursor: pointer;
}
.material-symbols-outlined{
    cursor: pointer;
}
/* ---------- Base Image Responsiveness ---------- */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
  /* Navbar */
  #nav-bar {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  #ogout-btn{
    position: relative;
    margin-right: 120px;
  }
  .material-symbols-outlined{
    position: relative;
    margin-right: 70px;
  }

  #dashboard-logo {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  #dashboard-logo h3 {
    font-size: 18px;
    text-align: center;
    position: static;
  }

  #dashboard-logo > img {
    position: static;
  }

  #nav-button {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: static;
    margin-top: 10px;
  }

  #nav-button > button {
    font-size: 14px;
    padding: 6px 12px;
  }

  #nav-select {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  /* Image Slider */
  #image-slider > img {
    height: 250px;
  }

  /* Sections */
  #electronics,
  #fashion,
  #home {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    left: 0;
    padding: 0 10px;
    justify-items: center;
  }

  #electronics-div,
  #fashion-div,
  #home-div {
    width: 90%;
    height: auto;
  }

  #electronics-div img:nth-of-type(1),
  #fashion-div img:nth-of-type(1),
  #home-div img:nth-of-type(1) {
    width: 100%;
    height: auto;
  }

  /* Footer */
  #footer {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
    text-align: center;
    gap: 10px;
  }

  #footer h4 {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  #nav-button {
    flex-direction: column;
  }

  #nav-select {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
  }

  #nav-button > button,
  #nav-select > button {
    width: 100%;
  }

  #electronics,
  #fashion,
  #home {
    grid-template-columns: 1fr;
  }

  #electronics-div,
  #fashion-div,
  #home-div {
    width: 100%;
  }
}




.hidden {
  display: none;
}

/* Cart section styling */
#cart-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  color: whitesmoke;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  box-sizing: border-box;
}

/* Close button */
#close-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
  line-height: 25px;
  text-align: center;
}

/* Cart item structure */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: #444;
}

/* Group image and product info horizontally */
.cart-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Remove button aligned properly */
.cart-buttons {
  display: flex;
  justify-content: flex-end;
}

.delete-cart-item-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background-color: rgb(226, 143, 35);
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* Checkout button */
#checkout-btn {
  padding: 10px;
  font-size: 15px;
  background-color: rgb(67, 70, 220);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
}

#checkout-btn:hover {
  background-color: rgb(67, 108, 233);
}
.fashion-cart-btn{
    padding: 8px 16px;
    background-color: rgb(217, 217, 173);
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    top: 2%;
    right: 20%;
}
#ogout-btn{
    position: relative;
    left: 20%;
    cursor: pointer;
}

.profile-section {
  position: fixed;
  top: 80px;
  right: 30px;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 300px;
  display: none;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid #e0e6ed;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #e74c3c;
}


.profile-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  color: #2c3e50;
  text-align: left;
}


#user-email,
#user-role {
  font-size: 15px;
  margin: 8px 0;
  color: #34495e;
  background-color: #f4f6f8;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  word-wrap: break-word;
  text-align: left;
}
