/* === Mobile Top Navigation (Hamburger Style) === */
.top-header {
    background-color: #2c2c2c;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.sp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #2c2c2c;
    color: #fff;
}

.cart-icon-sp {
    position: relative;
}

.number-item {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    z-index: 2;
}


/* Hamburger default (3 lines) */
.openbtn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s ease;
}

/* Close icon styles (cross) */
.openbtn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.openbtn.active span:nth-child(2) {
    opacity: 0;
}

.openbtn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


#g-nav {
    display: none;
    background-color: #2c2c2c;
    /* height: 100vh; */
    padding: 1rem;
    animation: slideDown 0.3s ease;
    overflow-y: auto;
}

#g-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

#g-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #444;
}

#g-nav a {
    color: #fff;
    display: block;
    width: 100%;
    padding: 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

#g-nav a:hover {
    background-color: #444;
}
