*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family:"Noto Sans KR",-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color:#222;
}
.wrap{
    max-width:1200px;
    margin:0 auto;
}

/* 그리드 레이아웃 */
.product-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    margin-bottom: 40px;
}

/* 카드 공통 */
.product-card{
    background:#fff;
    border-radius:4px;
    box-shadow:0 0 8px rgba(0,0,0,.08);
    overflow:hidden;
    text-align:center;
    padding-bottom:24px;
}

/* 카드 상단 이미지 영역 */
.product-thumb{
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    padding: 0 20px;
}
.product-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* 상태 라벨 */
.product-status{
    margin-top:14px;
    font-size:14px;
    font-weight:700;
    animation: blinkColor 0.8s infinite alternate;
}

@keyframes blinkColor {
    0%   { color: red; }
    100% { color: orange; }
}

/* 가격 */
.product-price{
    margin-top:8px;
    font-size:24px;
    font-weight:800;
    color:#d60000;
}

/* 텍스트 영역 */
.product-meta{
    margin-top:10px;
    font-size:14px;
    line-height:1.6;
}

/* 상세 보기 버튼 */
.product-btn{
    display:inline-block;
    margin-top:16px;
    padding:9px 26px;
    background:#333;
    color:#fff;
    font-size:14px;
    text-decoration:none;
    cursor: pointer;
}
.fhero{
    width:100%;
    height:150px;
    background:url("img/stock.png") center/cover no-repeat; /* ← 여기 변경 */
    position:relative;
    overflow:hidden;
    margin-bottom:30px;
}
.fhero::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.25);
}
.fhero-title{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1;
    font-size:40px;
    font-weight:700;
    color:#fff;
    text-shadow:0 2px 8px rgba(0,0,0,0.25);
    letter-spacing:5px;
}

.date-picker-box{
    margin:20px 0 28px 0;
    padding:14px 18px;
    background:#f7f9ff;
    border:1px solid #dbe3ff;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:16px;
    font-size:14px;
    color:#1F3A7A;
    font-weight:600;
}

.date-picker-box input[type="date"]{
    padding:8px 10px;
    border:1px solid #c9d4f5;
    border-radius:8px;
    font-size:14px;
}
/* 반응형 */
@media(max-width:980px){
    .product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:640px){
    .product-grid{
        grid-template-columns:1fr;
    }
}

.pagination{width: 100%;text-align:center;margin-top:20px;margin-bottom: 50px;}
.pagination a{
    display:inline-block;padding:6px 12px;margin:0 4px;
    border:1px solid #ddd;border-radius:6px;
    text-decoration:none;color:#333;font-size:14px;
}
.pagination a.active{
    background:#2563eb;color:#fff;border-color:#2563eb;
}
.pagination a:hover{background:#f0f0f0;}
.product-info .goal {
    color: #ff3333;      /* 빨간색 */
    font-weight: bold;
}

.product-info .risk {
    color: #287bff;      /* 파란색 */
    font-weight: bold;
}

.product-title strong {
    font-size: 16px;
    color: #222;
}

.product-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.product-card {
    position: relative;
    padding-top: 30px; /* 날짜 표시 공간 확보 */
}

/* 작성일을 오른쪽 가장 위에 배치 */
.product-date-top {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 12px;
    color: #666;
}

/* 목표/리스크 색상 */
.product-info .goal {
    color: #ff3333; /* 빨간색 */
    font-weight: bold;
}

.product-info .risk {
    color: #287bff; /* 파란색 */
    font-weight: bold;
}

.product-title strong {
    font-size: 20px;
    color: #222;
}
.view-btn{
    height:36px;
    padding:0 16px;
    font-size:14px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(135deg,#4f9bff,#2563eb);
    border:none;
    border-radius:8px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(37,99,235,.25);
    transition:0.15s;
}

/* hover 효과 */
.view-btn:hover{
    opacity:0.9;
}
.floating-buy-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1f5fff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 64px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover 효과 */
.floating-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .floating-buy-btn {
        width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: 12px;
        right: 16px;
        bottom: 16px;
    }
}