body {
    font-family: 'Apple SD Gothic Neo', sans-serif;
    background-color: #fcfbf9;
    color: #333;
    margin: 0;
}

.font-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    color: #333 !important;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/bg_pawnshop.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-kicker {
    letter-spacing: 2px;
    font-weight: 600;
}

.search-container {
    max-width: 760px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
}

.search-input {
    border: none;
    padding: 25px 30px 25px 65px;
    border-radius: 50px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    font-size: 1.15rem;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: #aaa;
}

.toolbar-box {
    background: #faf9f7;
    border: 1px solid #f1ede7;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 26px;
}

.toolbar-meta {
    font-size: 0.92rem;
    color: #777;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.icon-count {
    background: #f8f9fa;
    color: #343a40;
}

.icon-high {
    background: #fff4f2;
    color: #d94841;
}

.icon-low {
    background: #eef7ff;
    color: #1971c2;
}

.icon-stock {
    background: #f4fbf5;
    color: #2b8a3e;
}

.summary-label {
    font-size: 0.88rem;
    color: #868e96;
    margin-bottom: 4px;
    font-weight: 700;
}

.summary-value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #212529;
}

.mineral-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 25px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.mineral-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.mineral-img-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.mineral-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
}

.stock-badge.low-stock {
    background: #fff3bf;
    color: #8a6100;
}

.stock-badge.out-stock {
    background: #ffe3e3;
    color: #c92a2a;
}

.category-tag {
    font-size: 0.75rem;
    color: #888;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.price-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d9534f;
}

.price-subtext {
    font-size: 0.82rem;
    color: #999;
    margin-top: 4px;
}

.mineral-item {
    transition: opacity 0.25s ease;
}

.empty-box {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 22px;
    padding: 42px 20px;
}

.no-result-hidden {
    display: none;
}

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
    }

    .search-input {
        font-size: 1rem;
        padding: 20px 24px 20px 58px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-box {
        padding: 14px;
    }

    .summary-card {
        border-radius: 18px;
        padding: 16px;
    }
}