*{
    font-family: sans-serif;
    text-align: center;
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    

body{
   
   background-size: cover;
   color: white;
   background: linear-gradient(135deg, #440505, #274a6e);
}
a{
    text-decoration: none;
    font-weight: bolder;
    font-size: large;
    color: whitesmoke;
    margin-right: 1%;
    
}
a:hover{
    color: red;
}
.main-body{
    min-height: calc(100vh - 150px);
    
}

/*.........................................header styling..........................................*/
#header-section{
    background-color: white;
    align-content: space-between;
    border-radius: 0.5rem;  
    max-width: auto;
    top: 0;
}
#logo{
    display: flex;
    color: chartreuse;
    font-weight: bolder;
    font-size: large;
    align-items: center;
}
.logo{
    width: 130px;
    height: auto;
    display: block;
}
span#p{
  color: black;
}
span#m{
  color: red;
}
span#stores{
  color: blue;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: wheat;
    top: 0;
    z-index: 1000;
}



/*...................................nav-bar button styling......................................*/

nav{
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
#nav-a{
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 1.5rem;
    transition: 0.3s;
    position: relative;
}
#nav-a:hover{
    color: red;
}
#nav-a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    border-bottom: solid 4px aqua;
    transition: width 0.3s;
}
#nav-a:hover::after{
    width: 100%;
}
.btn{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 5rem;
}
#account-icon{
    width: 5rem;
    height: 2.4rem;
    border-radius: 2rem;    
    cursor: pointer;
    background-color: orange;
    border: none;
}
#account-icon:hover{
    color: white;
    background-color:orangered;
}
#openCart{
    border-radius: 2rem;
    cursor: pointer;
    background-color: orange;
    border: none;
}
#openCart:hover{
    color: white;
    background-color: orangered;
}

/*...................................home page hero section styling......................................*/
#hero{
    border-radius: 1rem;
    padding: 2rem;
    font-size: xx-large;
    margin-top: 1rem;
    background-position: center;
    width: 100%;
    height: 500px;
    font-weight: bolder;
    height: 500px;
    min-width: auto;
    text-align: center;
    background-attachment: fixed;
    object-fit: cover;
    background-size: cover;
}

#hero h1 {
  font-size: 2rem;
}

#hero p {
  margin: 55px 0;
  font-size: 1.1rem;
}

#btn {
  padding: 12px 25px;
  font-size: 1rem;
  background: orange;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#btn:hover{
  background-color: orangered;
}

.main-body h1 {
  text-align: center;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product {
  background: snow;
  border: 1px solid black;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product img {
  max-width: 100%;
  height: 250px;
  border-radius: 5px;
}

.product h3 {
  margin: 10px 0;
  color: red;
  font-size: 1.1rem;
}

.product p {
  font-weight: bold;
  color: black;
}

.product button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.product button:hover{
  background-color: navy;
}

.product:hover {
  transform: scale(1.03);
}


/*..........................................cart page styling............................................*/

.cart-panel {
  position: fixed;
  right: -400px; 
  top: 0;
  color: snow;
  width: 350px;
  height: 100%;
  background: wheat ;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  padding: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.cart-panel.active {
  right: 0; /* slide in */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid blue;
  padding-bottom: 10px;
  color: black;
}

.cart-header h2 {
  font-size: 20px;
  margin: 0;
}

.close-cart {
  font-size: 24px;
  cursor: pointer;
  color: red;
}

.cart-items {
  margin: 20px 0;
  max-height: 60%;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: black;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.cart-item p {
  margin: 0;
  font-size: 14px;
}

.cart-item button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 5px 8px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.cart-item button:hover {
  background: #0056b3;
}

.cart-total {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  color: black;
}

#checkout-btn {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  margin-top: 15px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

#checkout-btn:hover {
  background: #218838;
}




/*..........................................shop page styling............................................*/
#cartegory-btn{
    display: inline;
    background-color: royalblue;
    color: white;
    height: 2rem;
    width: 7rem;
    margin-left: 1rem;
    border-radius: 0.5rem;
    border: none;
}
#cartegory-btn:hover{
    background-color: darkblue;
    color: black;
}
#shop-products{
    
    background-color: brown;
    margin-bottom: 3rem;
}

/*.............................LOGIN , SIGN-UP AND CONTACT PAGES STYLING............................*/
.section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(92, 90, 86, 0.8);
  border-radius: 8px;
  width: 94%;
  margin-left: 3% ;
  margin-top: 2rem;
  border-radius: 15px;
}
h1 {
  text-align: center;
  margin-bottom: 15px;
}
form input, form textarea, form button {
  width: 50%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  background: #007BFF;
  color: black;
  border: none;
  cursor: pointer;
}
form button:hover {
  background: #0056b3;
}

/*..........................................confirmation page styling............................................*/

.note{
  margin-top: 2rem;
  font-size: large;
}


/*..........................................team page styling............................................*/

.team {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.member {
    background: snow;
    border: 2px solid #e0e0e0;
    border-radius: 6px; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    padding: 20px;
    width: 280px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.member img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.member .name {
    font-size: 1.3rem;
    color: navy;
    margin-bottom: 5px;
}

.member .role {
    font-size: 1.2rem;
    font-weight: bold;
    color: red;
    margin-bottom: 10px;
}

.member .bio {
    font-size: 0.9rem;
    color: black;
    line-height: 1.4;
    margin-bottom: 10px;
}

.member .contact {
    font-size: 0.85rem;
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
}

.member .fun-fact {
    font-size: 0.85rem;
    color: #333;
    font-style: italic;
    background: rgb(238, 237, 237);
    padding: 8px;
    border-left: 4px solid #0077b6;
}

/*..........................................footer styling............................................*/

footer{
    background: black;
    color: white;
    padding: 3rem;
    margin-top: 5rem;
    margin-bottom: 0px;
    border-radius: 0.5rem;
    
}

.footer-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    color: sandybrown;
}

.footer-grid div h2 {
    margin-bottom: 10px;
    color: red;
    border-bottom: 2px solid whitesmoke;
}

.footer-grid div a {
    display: block;
    color: sandybrown;
    text-decoration: none;
    margin: 5px 0;
}

.footer-grid div a:hover {
    text-decoration: underline;
}

/*.................................Responsive design styling............................................*/

/* Mobile view */
@media (max-width: 600px) {
  header {
    flex-direction: row;   
    align-items: center;  
    border-radius: 15px;
    background-color: wheat;
  }

  nav {
    flex-direction: column;   
    width: 100%;              
    gap: 10px;
    margin-top: 10px;
  }

  nav a {
    display: block;           
    padding: 8px;
    background: green;
    border-radius: 4px;
  }

  .btn {
    flex-direction: row;      
    margin-top: 20px;
    margin-right: 5px;
  }

  #logo h1 {
    font-size: 1.2rem;        
  }
  
}
* Mobile Responsiveness */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 1.5rem;
  }

  #hero p {
    font-size: 1rem;
  }

  #btn {
    width: 100%;
    padding: 15px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  #hero h1 {
    font-size: 1.2rem;
  }

  #hero p {
    font-size: 0.9rem;
  }
}
