/* ============================================
   鲜花列表页样式 - 主流英文鲜花网站风格
   ============================================ */

   .main-content {
    padding: 30px 0 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #DD302D;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ========== 页面标题区 ========== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========== 商品网格 - 4列布局 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.product-link {
    text-decoration: none;
    display: block;
}

.product-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #DD302D;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background: #f5f5f5;
    border-color: #DD302D;
    color: #DD302D;
}

.page-link.current {
    background: #DD302D;
    border-color: #DD302D;
    color: white;
    cursor: default;
}

.page-link.prev,
.page-link.next {
    font-weight: 500;
}

.page-dots {
    color: #999;
    padding: 0 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .products-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0 40px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .page-header {
        margin-bottom: 25px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-name {
        font-size: 13px;
        height: 36px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-name {
        font-size: 12px;
        height: auto;
        -webkit-line-clamp: 1;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header p {
        font-size: 13px;
    }
}
/* 分类描述区域 */
.category-description {
  background-color: #f8f9fa;
  padding: 40px 0;
  margin-top: 30px;
  border-top: 1px solid #e9ecef;
}

.category-description .text-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.category-description .text-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

/* 无商品提示 */
.no-products {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .category-description {
      padding: 30px 0;
  }
  .category-description .text-content h2 {
      font-size: 18px;
  }
  .category-description .text-content p {
      font-size: 13px;
  }
}