* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background:linear-gradient(to right, #01d3f8, #e9ecef, #01e8f4);
    color: #fdfcfc;
}
.topbar {
    font-size: .9rem;
    background: linear-gradient(90deg, #35354a, #101a3b8d);
    color: var(--muted)

}

.topbar .container {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .3);
    color: #7dd3fc;
    padding: .2rem .5rem;
    border-radius: 999px
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: linear-gradient(to right, #00c6ff, #ffffff);
}

.logo img {
  height: 40px;
}

.shop-name {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #7052aa;
}

.search-bar {
  width: 20px;
}

.search-bar input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem ;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 700px
}

.site-logo-link{
  left: 500px;
  top: 12px;
  z-index: 1000;
  display: block;
  width: 48px;
  height: 48px;
}
.site-logo{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:6px;
  box-shadow:0 4px 8px rgba(242, 12, 12, 0.179);
  display:block;
}
/* Push main header/menu content a bit to the right on larger screens so the logo doesn't overlap */
@media(min-width:480px){
  .containar{ padding-left:76px; }
}
@media(max-width:479px){
  .site-logo-link{ left:8px; top:8px; width:40px; height:40px; }
}
.brand span {
    letter-spacing: 1px
}

/* Search */
.search {
    margin-left: 80px; 
    padding: 8px 12px; 
    font-size: 14px; 
    border: 5px solid #ccc; 
    border-radius: 30px; 
    width: 300px
}

.search input {
    flex: 30;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text)
}
.search-container {
  display: flex;
  margin-top: 20px;        /* khoảng cách từ trên xuống */
  justify-content: center; /* căn giữa theo chiều ngang */
  align-items: center;     /* căn giữa theo chiều dọc */
  height: 100px;           /* chiều cao của vùng chứa */
}

.search-bar {
  width: 300px;
  padding: 10px;
  font-size: 16px;
}
/* Cart/User */
.actions {
    display: flex;
    gap: .6rem
}

.btn {
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(148, 163, 184, .08);
    padding: .55rem .9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .5rem
}

.btn:hover {
    border-color: rgba(148, 163, 184, .35)
}

/* === Multi‑level Menu (Desktop) === */
.menu {
    position: relative
}

.menu>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .5rem
}

.menu>ul>li {
    position: relative
}

.menu>ul>li>a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .8rem;
    border-radius: 999px
}

.menu>ul>li>a:hover {
    background: rgba(3, 80, 235, 0.453)
}

/* Dropdown level 1 */
.dropdown {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    min-width: 240px;
    background: linear-gradient(180deg, #2a2c34, #0b0f21);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: var(--radius);
    padding: .5rem;
    display: none;
    box-shadow: var(--shadow)
}

.menu>ul>li:focus-within>.dropdown,
.menu>ul>li:hover>.dropdown {
    display: block
}

.dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: var(--text)
}

.dropdown a:hover {
    background: rgba(148, 163, 184, .12)
}

/* Submenu (level 2) */
.dropdown li {
    position: relative;
    list-style: none
}

.dropdown .submenu {
    position: absolute;
    top: -.5rem;
    left: calc(100% + .5rem);
    min-width: 220px;
    display: none;
    padding: .5rem;
    background: linear-gradient(180deg, #1e2225, #0f0f11);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: var(--radius)
}

.dropdown li:focus-within>.submenu,
.dropdown li:hover>.submenu {
    display: block
}

/* === Mobile Nav (no JS) === */
#nav-toggle {
    display: none
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(148, 163, 184, .08);
    cursor: pointer
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 6px auto
}

.mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(243, 243, 247, 0.96);
    padding: 1rem;
    overflow: auto
}

#nav-toggle:checked~.mobile-panel {
    display: block
}

.mobile-panel nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .12)
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

.product {
    background-color: rgb(8, 124, 241);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(11, 4, 4, 0.1);
    width: 250px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}
.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.2);
}
.product img {
    width: 100%;
    border-radius: 6px;
}
.product h3 {
    margin: 10px 0;
}
.product p {
    color: #f3d27e;
    font-weight: bold;
}
.product button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    background-color: #0202f5;
    color: rgb(247, 244, 244);
    cursor: pointer;
    transition: 0.3s;
}
.product button:hover {
    background-color: #06a5f4;
}
footer {
    text-align: center;
    background-color: #466ded;
    color: rgb(253, 252, 251);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}