/* ===== Market Page ===== */

.page-bg-container {
    position: absolute;
    inset: 0;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #e6edfa 0%, #f5f8ff 60%, #e6eaff 100%);
    z-index: 0;
}

.bg-layer {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.bg-layer-1 {
    width: 30%;
    height: 70%;
    left: 0;
    top: 0;
    opacity: 0.9;
    background: url('/images/price/bg1.png') no-repeat left top;
    background-size: contain;
}

.bg-layer-2 {
    width: 30%;
    height: 70%;
    right: 0;
    top: 30%;
    opacity: 0.9;
    background: url('/images/price/bg2.png') no-repeat right center;
    background-size: contain;
}

.bg-layer-3 {
    width: 30%;
    height: 50%;
    left: 0;
    bottom: 0;
    opacity: 0.86;
    background: url('/images/price/bg3.png') no-repeat left bottom;
    background-size: cover;
}

/* Hero Section */
.market-hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.market-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.market-hero-sub {
    font-size: 1.05rem;
    color: #5a6580;
    margin-bottom: 32px;
}

.market-search-bar {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 86, 255, 0.18);
    border-radius: 40px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 4px 24px rgba(2, 86, 255, 0.08);
}

.market-search-icon {
    color: #0256FF;
    margin-right: 10px;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.market-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1a2340;
}

.market-search-input::placeholder {
    color: #aab0c0;
}

.market-search-btn {
    background: linear-gradient(135deg, #0256FF, #4d8aff);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.market-search-btn:hover {
    opacity: 0.88;
}

/* Body */
.market-body {
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

/* Filter bar */
.market-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 86, 255, 0.12);
    border-radius: 14px;
}

.market-filter-item {
    display: inline-block;
    padding: 6px 20px;
    font-size: 0.9rem;
    color: #5a6580;
    border: 1px solid transparent;
    border-radius: 24px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.market-filter-item.active,
.market-filter-item:hover {
    color: #0256FF;
    border-color: #0256FF;
    background: rgba(2, 86, 255, 0.07);
    font-weight: 600;
}

/* Product card */
.market-product-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 86, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.market-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(2, 86, 255, 0.14);
}

.market-product-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.market-product-card:hover .market-product-img img {
    transform: scale(1.04);
}

.market-product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.market-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 6px;
}

.market-product-desc {
    font-size: 0.82rem;
    color: #7a84a0;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.market-product-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-symbol {
    font-size: 0.85rem;
    color: #e03030;
    font-weight: 600;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e03030;
}

/* Empty state */
.market-empty-state {
    text-align: center;
    padding: 80px 20px;
}

/* Pagination */
.market-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.market-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #5a6580;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(2, 86, 255, 0.15);
    transition: all 0.15s;
}

.market-page-link.active,
.market-page-link:hover {
    background: #0256FF;
    color: #fff;
    border-color: #0256FF;
    font-weight: 600;
}
