/* styles.css */
body {
    font-family: Arial, sans-serif;
}

#filter-section, #store-section, #filter-list {
    margin: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}

/* 下面仨规定所以商品那块的大小和比例，改.product-image的width和height即可 */
#product-images {
    display: flex;
    flex-wrap: wrap; /* 允许图片换行 */
    justify-content: start; /* 图片在行内水平排列 */
}

.product-image {
    width: 50px; /* 设置图片宽度为100像素 */
    height: 50px; /* 设置图片高度为100像素 */
    margin: 5px; /* 每个图片间隔 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，内容可能被裁剪 */
}

#store-section img {
    width: 100px; /* 设置图片宽度为100像素 */
    height: 100px; /* 设置图片高度为100像素 */
    object-fit: cover; /* 保持图片比例，内容可能被裁剪 */
}
.filter-button {
    margin: 5px;
    padding: 10px;
    cursor: pointer;
}

.store {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #000;
    width: 100%; /* 让每个商店占据整行 */
    box-sizing: border-box;
}

.store-header {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 10px;
  }

  .store-name {
    font-size: 18px;
    font-weight: bold;
    margin-right: 20px; /* 在名称和石头属性之间留出一些空间 */
  }
  
  .store-stone {
    font-size: 16px;
    color: #555;
  }

.store-images {
    display: flex;
    flex-wrap: wrap; /* 允许图片换行 */
    justify-content: start; /* 图片在行内水平排列 */
}

.store-image-item {
    margin: 5px;
    padding: 2px;
    border: 1px solid #ccc;
    width: calc(16.6% - 12px); /* 一行6个图片，减去间距 */
    box-sizing: border-box;
    position: relative;
}

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

.store-image-item:hover .product-tooltip {
    display: block;
}

.product-tooltip {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 3px 3px 0 0;
    font-size: 12px;
    white-space: nowrap;
}






#selected-products {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#selected-products img {
    margin: 5px;
    border: 2px solid transparent; /* 未选中状态 */
    cursor: pointer;
}

#selected-products img.selected {
    border-color: #f00; /* 选中状态，红色边框 */
}