html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
    color: #222;
}


.bottom-nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    height: 60px;
}

.bottom-nav a {
    flex: 1;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    color: #444;
    text-decoration: none;
    line-height: 60px;
}

.top-nav {
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#product-list {
    padding-top: 130px;
}

.img-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.img-btn img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.card {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.card img {
    width: 100px;
    height: 125px;
    object-fit: cover;
    border-radius: 8px;
}

.card-category {
    font-size: 12px;
    color: #888;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    padding-top: 5px
}

.price {
    font-size: 15px;
    color: #d60000;
    font-weight: bold;
    padding-top: 5px
}

.status {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    padding-top: 5px
}

.status.blink {
    animation: blink 1s infinite;
    color: #ff0000;
}

@keyframes blink {
    0% {
        color: #ff0000;
    }

    50% {
        color: #000;
    }

    100% {
        color: #ff0000;
    }
}

.cart-controls {
    padding-top: 5px
}

.cart-controls .count {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.cart-controls button {
    width: 30px;
    height: 30px;
    padding: 4px 8px;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.15s ease;
}

.cart-controls button:active {
    background: #000;
    color: #fff;
}

.bottom-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff6fae;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    height: 60px;
    box-sizing: border-box;
}

.bottom-cart button {
    background: #fff;
    color: #ff6fae;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
}

.bottom-cart button:hover {
    background: #f5f5f5;
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.site-footer .footer-info {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.site-footer .footer-menu a:link,
.site-footer .footer-menu a:visited,
.site-footer .footer-menu a:active {
    color: #777;
    text-decoration: none;
}

.popup-bankguide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-webbroswer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background: #fff;
    width: 500px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup h2 {
    margin-top: 0;
    font-size: 18px;
}

.popup button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background: #0078ff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.close-btn:hover {
    color: #ff6fae;
}

.footer-container{
    bottom: 0;
    left: 0;
    background: #ffffffff;
    width: 100%;
    height: 60px;
    font-size : 10px;
    text-align : center;
    color: #949494ff;
}
.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-info a,
.footer-info button {
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    line-height: 1;
    color: #949494ff;
    font-size: 10px;
    background: none;
    border: none;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.footer-detail {
    margin-top: 10px;
    padding-bottom: 10px;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px 40px;
    color: #bbb;
    font-size: 10px;
}

.footer-detail p {
    margin: 0;
    padding: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-cart-btn {
    display: block;
    width: 100px !important;
    padding: 14px 0;
    background: #ff6fae !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#product-hide {
    height: calc(100dvh - 70px); /* 100vh 대신 100dvh 사용 (모바일/PC 모두 정확) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #fff0f5 0%, #fff 100%);
    color: #ff6fae;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    padding-bottom: 60px; /* footer 공간 */
    box-sizing: border-box;
}

#product-hide .emoji {
    font-size: 64px;
    margin-bottom: 16px;
}

#product-hide .text {
    background: #fff;
    padding: 20px 36px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(255, 111, 174, 0.25);
    border: 1px solid #ffd6e8;
}
