

/* 기존 CSS 스타일 유지 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
:root {
--font-color: #000000;
--main-background: #ffffff;
--highlight: #0068c9;
--highlight-font-color: #ffffff;
--category-item: #ffffff;
--category-split: #ffffff;
--item-split: #cfcfcf;
--item-background: #f8f8f8;
--item-left: #0068c9;
--item-border: #5757575e;
--item-hover-background: #fefefe;
--grad-one: #ff3cf7;
--grad-two: #4b4eff;
--card-background: #ffffff;
--card-split: #c4c4c4;
--card-shop-background: #28293b;
--card-shop-active: #232329;
--table-top: #f02965;
--table-bottom: #3d3c50;
--red: #f03333;
--red-active: #d42e2e;
--green: #1aa30e;
--green-active: #386d23;
--default: #0084ff;
--default-active: #0068c9;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
}

html, body {
    height: 100%;
    font-family: "Pretendard";
    margin: 0;
    padding: 0;
}
.admin-grade {
color: red;
font-weight: bold;
}
/* 상품 그리드 관련 새로운 스타일 */
#productContainer {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    margin: 20px 0;
}

@media (max-width: 640px) {
    #productContainer {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #productContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    #productContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1281px) {
    #productContainer {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden; /* 모달 외부는 스크롤 방지 */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* 모달 높이를 제한 */
    overflow-y: auto; /* 스크롤 활성화 */
    position: relative;
}



    /* 비활성화된 상품 스타일 */
    .product-card.inactive {
        opacity: 0.6;
        border: 2px dashed #e74c3c !important;
        background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(255, 255, 255, 0.9)) !important;
    }

    .product-card.inactive .status-badge {
        background-color: #e74c3c;
        color: white;
        font-weight: bold;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.7; }
        100% { opacity: 1; }
    }

/* 공지 모달 */
.notice-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: noticeSlideIn 0.3s ease;
}

@keyframes noticeSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.notice-modal-header {
    background: linear-gradient(135deg, #f02965, #ff6b35);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    color: #fff;
    font-size: 1.5rem;
}

.notice-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.notice-modal-body {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

.notice-modal-body p {
    margin: 0 0 10px;
}

.notice-warning {
    color: #e74c3c;
    font-weight: 600;
    background: #fff5f5;
    border-left: 3px solid #e74c3c;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 12px !important;
}

.notice-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.notice-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f02965;
}

.notice-close-btn {
    background: linear-gradient(135deg, #f02965, #ff6b35);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.notice-close-btn:hover {
    opacity: 0.85;
}