.masonry-container {
    display: block;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1200px) {
    .masonry-container { gap: 15px; }
}

@media (max-width: 768px) {
    .masonry-container { 
        gap: 10px; 
        padding: 10px; 
    }
}

@media (max-width: 480px) {
    .masonry-container { 
        flex-direction: column; 
    }
}

.masonry-item {
    margin-bottom: 0;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-content {
    padding: 10px;
}

.masonry-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.masonry-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.masonry-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.masonry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.masonry-tag {
    color: white;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

.masonry-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

.masonry-type.digital {
    color: white;
}

.masonry-type.physical {
    background: #fff3e0;
    color: #e65100;
}

.search-section {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto 10px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    color: white;
    padding: 3px 3px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
}

.search-btn:hover {
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

