* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
/* Basic Styles */
body {
    background-color: #f5f5f5;
    margin: 0 auto;
    padding: 0 15px;
    position: inherit;
}
/* Header Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: #33def3;
}
.logo img {
    height: 60px;
    margin-left: 10px;
}
.search-container {
    flex: 0 1 500px;
    display: flex;
    gap: 10px;
}
#search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #33def3;
    border-radius: 25px;
    font-size: 16px;
}
.search-btn {
    background: white;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}
.search-btn:hover {
    background: #333;
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cart-btn {
    position: relative;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}
#cart-details{
    display: none;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 8px;
}
#cart-details {
    display: none;
    position: absolute; /* Quan trọng để đè lên */
    left: -100px; /* Gắn về bên trái icon */
    top: 100%; /* Đặt ngay dưới icon */
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 8px;
    padding: 10px;
  }
  
.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 12px;
}
#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
  }
.auth-links {
    display: flex;
    gap: 5px;
}
.auth-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    margin-right: 5px;
}
.auth-links a:hover {
    color: black;
    text-decoration: underline;
}
/* Main Menu */
.main-menu {
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    list-style: none;
}
  
.main-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #33def3;
    transition: width 0.3s;
  }
  
.main-menu a:hover::after {
    width: 100%;
  }
  
  /* Submenu styles */
  .has-submenu{
    position: relative;
  }
.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: #f8f9fa;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
.submenu li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
  }
  
.submenu li a:hover {
    background-color: #33def3;
    color: white;
  }
.has-submenu:hover .submenu {
    display: block;
  }
main h1 {
    margin: 0;
    font-size: 28px;
}
main a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}
#checkout {
    background-color: #33def3;
    float: right;
    width: 80px;
    height: 20px;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
}
#checkout::after{
    content: "";
    text-decoration: none;
    color: #e91e63;
}
/* Container */
.about-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    border-left: 5px solid #33def3;
}
.about-container h2 {
    color: #33def3;
    font-size: 26px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #1fbcd4;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: #33def3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #444;
}
#services {
    display: flex;
    justify-content: space-around;
    padding: 20px 5px;
    background-color: #eee;
}
main p, h3, li, ul{
    margin: 10px 20px;
}