* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Basic Styles */
body {
    background-color: #f5f5f5;
}

#page {
    max-width: 1500px;
    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;
}
#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: 5px 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;
    padding-top: 5px;
  }
.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;
    padding: 10px;
    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;
  }
/* body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}

h1 {
    text-align: center;
    color: #33def3;
    margin-top: 20px;
}

#cart-items {
    margin: 20px auto;
    max-width: 800px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.cart-table th {
    background-color: #33def3;
    color: white;
    font-weight: bold;
}

.cart-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cart-table tr:hover {
    background-color: #f1f1f1;
}

#total {
    text-align: center;
    margin-top: 30px;
}

#total h2 {
    color: #33def3;
}

#checkout-btn {
    display: block;
    width: 220px;
    margin: 30px auto;
    padding: 12px;
    background-color: #33def3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#checkout-btn:hover {
    background-color: #1da1c2;
}

#checkout-btn:focus {
    outline: none;
}

#cart-items p {
    text-align: center;
    color: #777;
}

/* Footer Styles */
.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: 1200px;
    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: #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #33def3;
}
#services {
    display: flex;
    justify-content: space-around;
    padding: 20px 5px;
    background-color: #eee;
}